Lines Matching defs:crc32
0 /* crc32.c -- compute the CRC-32 of a data stream
17 one thread to use crc32().
19 MAKECRCH can be #defined to write out crc32.h. A main() routine is also
48 crc32.h would need to be regenerated, if the maximum N value is increased.
152 # include "crc32.h"
346 The crc32.h header file contains tables for both 32-bit and 64-bit
352 # error Need a 64-bit integer type in order to generate crc32.h.
359 out = fopen("crc32.h", "w");
362 /* write out little-endian CRC table to crc32.h */
364 "/* crc32.h -- tables for rapid CRC calculation\n"
365 " * Generated automatically by crc32.c\n */\n"
373 /* write out big-endian CRC table for 64-bit z_word_t to crc32.h */
386 /* write out big-endian CRC table for 32-bit z_word_t to crc32.h */
408 /* write out braid tables for 64-bit z_word_t to crc32.h */
434 /* write out braid tables for 32-bit z_word_t to crc32.h */
465 /* write out zeros operator table to crc32.h */
553 * This function can be used by asm versions of crc32(), and to force the
569 * -march=armv8-a+crc, or -march=native if the compile machine has the crc32
704 * zlib convention is to call crc32(0, NULL, 0); before making
705 * calls to crc32(). So this is a good, early (and infrequent)
707 * interesting crc32() calls.
714 if (!len) /* Assume user is calling crc32(0, NULL, 0); */
722 /* crc32 64-byte chunks */
729 /* Fall into the default crc32 for the remaining data. */
734 /* crc32 16-byte chunks */
741 /* Fall into the default crc32 for the remaining data. */
1083 unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf,
1095 if (!len) /* Assume user is calling crc32(0, NULL, 0); */
1161 s->strm->adler = crc32(0L, Z_NULL, 0);
1181 strm->adler = crc32(strm->adler, dst, size);