// Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore
// this bytes influence on the line parity.
-const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.1 2004-11-03 08:14:07 charles Exp $";
+const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.3 2005-07-29 19:57:38 luc Exp $";
+#ifdef __KERNEL__
+#include <linux/config.h>
+#endif
#include "yaffs_ecc.h"
// swap the bytes to correct for the wrong order
unsigned char t;
+#if 0 // NCB
t = d0;
d0 = d1;
d1 = t;
+#else
+ t = cDelta;
+ cDelta = lDelta;
+ lDelta = t;
+#endif
#endif
bit = 0;