Lines Matching defs:crc
43 * crc = CRC32_INITIAL;
45 * if (bit == (crc & 1))
46 * crc = (crc >> 1);
48 * crc = (crc >> 1) ^ CRC32_POLY;
62 * was a burst of zeroes. Note that if crc == 0, and we fold in a zero bit,
63 * we still have crc == 0. Therefore, if the CRC's initial value is zero,
78 * crc = CRC32_INITIAL;
80 * for (crc ^= byte, i = 8; i > 0; i--)
81 * crc = (crc >> 1) ^ (-(crc & 1) & CRC32_POLY);
88 * crc = CRC32_INITIAL;
90 * crc = (crc >> 8) ^ crc32_table[(crc ^ byte) & 0xFF];
117 * Typical usage: CRC32(crc, buf, size, -1U, crc32_table).
119 #define CRC32(crc, buf, size, start, table) \
126 crc = Xcrc; \
131 * array of known size. Computes both the crc and the string length.
132 * Typical usage: CRC32_STRING(crc, len, str, -1U, crc32_table).
134 #define CRC32_STRING(crc, len, str, start, table) \
141 (crc) = Xcrc; \