*
* Created by Charles Manning <charles@aleph1.co.uk>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * version 2.1 as published by the Free Software Foundation.
*/
/*
// 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 2003-05-20 22:32:24 charles Exp $";
+const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.3 2004-04-04 03:47:02 charles Exp $";
#include "yaffs_ecc.h"
if(line_parity_prime & 0x01) t |= 0x01;
ecc[0] = ~t;
-#if CONFIG_YAFFS_ECC_WRONG_ORDER
+#ifdef CONFIG_YAFFS_ECC_WRONG_ORDER
// Swap the bytes into the wrong order
t = ecc[0];
ecc[0] = ecc[1];
unsigned byte;
unsigned bit;
-#if CONFIG_YAFFS_ECC_WRONG_ORDER
+#ifdef CONFIG_YAFFS_ECC_WRONG_ORDER
// swap the bytes to correct for the wrong order
unsigned char t;