Lines Matching refs:crc
169 # define DO_CRC(x) crc = tab[(crc ^ (x)) & 255] ^ (crc >> 8)
171 # define DO_CRC(x) crc = tab[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)
179 uint32_t ZEXPORT crc32_no_comp(uint32_t crc, const Bytef *buf, uInt len) in crc32_no_comp() argument
188 crc = cpu_to_le32(crc); in crc32_no_comp()
202 crc ^= *++b; /* use pre increment for speed */ in crc32_no_comp()
217 return le32_to_cpu(crc); in crc32_no_comp()
221 uint32_t ZEXPORT crc32 (uint32_t crc, const Bytef *p, uInt len) in crc32() argument
223 return crc32_no_comp(crc ^ 0xffffffffL, p, len) ^ 0xffffffffL; in crc32()
230 uint32_t ZEXPORT crc32_wd (uint32_t crc, in crc32_wd() argument
244 crc = crc32 (crc, curr, chunk); in crc32_wd()
249 crc = crc32 (crc, buf, len); in crc32_wd()
252 return crc; in crc32_wd()
258 uint32_t crc; in crc32_wd_buf() local
260 crc = crc32_wd(0, input, ilen, chunk_sz); in crc32_wd_buf()
261 crc = htonl(crc); in crc32_wd_buf()
262 memcpy(output, &crc, sizeof(crc)); in crc32_wd_buf()