Lines Matching refs:crc
41 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
78 /* Definitions for doing the crc four data bytes at a time. */
91 /* Local functions for crc concatenation */
135 /* terms of polynomial defining this crc (except x^32): */
150 /* generate a crc for every 8-bit value */
159 /* generate crc for each value followed by one, two, and three zeros,
239 #define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)
243 uLong ZEXPORT crc32(crc, buf, len)
244 uLong crc;
261 return (uLong)crc32_little(crc, buf, len);
263 return (uLong)crc32_big(crc, buf, len);
266 crc = crc ^ 0xffffffffUL;
274 return crc ^ 0xffffffffUL;
286 local unsigned long crc32_little(crc, buf, len)
287 unsigned long crc;
294 c = (u4)crc;
326 local unsigned long crc32_big(crc, buf, len)
327 unsigned long crc;
334 c = REV((u4)crc);
444 /* return combined crc */