[NUT-devel] [NUT] (ods15): r74 - in /trunk: libnut/priv.h nututils/nutindex.c

syncmail at mplayerhq.hu syncmail at mplayerhq.hu
Sat Feb 25 17:20:18 CET 2006


Author: ods15
Date: Sat Feb 25 17:20:17 2006
New Revision: 74

Log:
Sync to spec crc

Modified:
    trunk/libnut/priv.h
    trunk/nututils/nutindex.c

Modified: trunk/libnut/priv.h
==============================================================================
--- trunk/libnut/priv.h (original)
+++ trunk/libnut/priv.h Sat Feb 25 17:20:17 2006
@@ -181,7 +181,7 @@
 	int i;
 	while (len--) {
 		crc ^= *buf++ << 24;
-		for(i = 0; i < 8; i++) crc = (crc<<1) ^ (0x1EDC6F41 & (crc>>31));
+		for(i = 0; i < 8; i++) crc = (crc<<1) ^ (0x04C11DB7 & (crc>>31));
 	}
 	return crc;
 }

Modified: trunk/nututils/nutindex.c
==============================================================================
--- trunk/nututils/nutindex.c (original)
+++ trunk/nututils/nutindex.c Sat Feb 25 17:20:17 2006
@@ -25,7 +25,7 @@
 	int i;
 	while (len--) {
 		crc ^= *buf++ << 24;
-		for(i = 0; i < 8; i++) crc = (crc<<1) ^ (0x1EDC6F41 & (crc>>31));
+		for(i = 0; i < 8; i++) crc = (crc<<1) ^ (0x04C11DB7 & (crc>>31));
 	}
 	return crc;
 }




More information about the NUT-devel mailing list