mtd/lib/reed_solomon decode_rs.c,1.2,1.3
gleixner at infradead.org
gleixner at infradead.org
Mon Sep 20 09:58:34 EDT 2004
Update of /home/cvs/mtd/lib/reed_solomon
In directory phoenix.infradead.org:/tmp/cvs-serv11361
Modified Files:
decode_rs.c
Log Message:
inverting is not really good in the error correction stage
Index: decode_rs.c
===================================================================
RCS file: /home/cvs/mtd/lib/reed_solomon/decode_rs.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- decode_rs.c 19 Sep 2004 12:09:40 -0000 1.2
+++ decode_rs.c 20 Sep 2004 13:58:31 -0000 1.3
@@ -214,7 +214,7 @@
/* Apply error to data */
if (num1 != 0 && loc[j] >= PAD) {
uint16_t cor = ALPHA_TO[MODNN (INDEX_OF[num1] + INDEX_OF[num2] + NN - INDEX_OF[den])];
- data[loc[j] - PAD] ^= cor ^ invmsk;
+ data[loc[j] - PAD] ^= cor;
}
}
More information about the linux-mtd-cvs
mailing list