Lines Matching refs:crc
109 uint32_t crc = 0; in main() local
111 crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ (i & 0xFF)) & 0xFF]; in main()
114 crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ 0x00) & 0xFF]; in main()
115 crctab[offset][i] = crc; in main()
166 uint_fast32_t crc = 0; in cksum_slice8() local
189 crc ^= SWAP (first); in cksum_slice8()
191 crc = (crctab[7][(crc >> 24) & 0xFF] in cksum_slice8()
192 ^ crctab[6][(crc >> 16) & 0xFF] in cksum_slice8()
193 ^ crctab[5][(crc >> 8) & 0xFF] in cksum_slice8()
194 ^ crctab[4][(crc) & 0xFF] in cksum_slice8()
205 crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ *cp++) & 0xFF]; in cksum_slice8()
210 *crc_out = crc; in cksum_slice8()
223 uint_fast32_t crc = 0; in crc_sum_stream() local
233 if (! cksum_fp (stream, &crc, &total_bytes)) in crc_sum_stream()
239 crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ total_bytes) & 0xFF]; in crc_sum_stream()
240 crc = ~crc & 0xFFFFFFFF; in crc_sum_stream()
242 unsigned int crc_out = crc; in crc_sum_stream()