[PATCH rslib] Support non-canonical GF representations
Thomas Gleixner
tglx at linutronix.de
Wed May 2 19:18:50 EDT 2007
On Wed, 2007-05-02 at 12:18 +0200, Segher Boessenkool wrote:
> + if (gfpoly) {
> + sr = 1;
> + for (i = 0; i < rs->nn; i++) {
> + rs->index_of[sr] = i;
> + rs->alpha_to[i] = sr;
> + sr <<= 1;
> + if (sr & (1 << symsize))
> + sr ^= gfpoly;
> + sr &= rs->nn;
> + }
> + } else {
> + sr = gffunc(0);
> + for (i = 0; i < rs->nn; i++) {
> + rs->index_of[sr] = i;
> + rs->alpha_to[i] = sr;
> + sr = gffunc(sr);
> + }
> }
Hmm, please check for
if (!gffunc)
instead of
if (gfpoly)
Please fix that up and add my
Acked-by: Thomas Gleixner <tglx at linutronix,de>
tglx
More information about the linux-mtd
mailing list