|
|
@ -13,7 +13,7 @@ |
|
|
|
* This code implements the AUTODIN II polynomial |
|
|
|
* This code implements the AUTODIN II polynomial |
|
|
|
* The variable corresponding to the macro argument "crc" should |
|
|
|
* The variable corresponding to the macro argument "crc" should |
|
|
|
* be an unsigned long. |
|
|
|
* be an unsigned long. |
|
|
|
* Oroginal code by Spencer Garrett <srg@quick.com> |
|
|
|
* Original code by Spencer Garrett <srg@quick.com> |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#define _CRC32_(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff]) |
|
|
|
#define _CRC32_(crc, ch) (crc = (crc >> 8) ^ crc32tab[(crc ^ (ch)) & 0xff]) |
|
|
|