Home | History | Annotate | Download | only in zlib

Lines Matching defs:crc32

1 /*	$NetBSD: crc32.c,v 1.7 2024/09/22 19:12:27 christos Exp $	*/
3 /* crc32.c -- compute the CRC-32 of a data stream
19 one thread to use crc32().
21 MAKECRCH can be #defined to write out crc32.h. A main() routine is also
44 crc32.h would need to be regenerated, if the maximum N value is increased.
103 /* If available, use the ARM processor CRC32 instruction. */
147 # include "crc32.h"
341 The crc32.h header file contains tables for both 32-bit and 64-bit
347 # error Need a 64-bit integer type in order to generate crc32.h.
354 out = fopen("crc32.h", "w");
357 /* write out little-endian CRC table to crc32.h */
359 "/* crc32.h -- tables for rapid CRC calculation\n"
360 " * Generated automatically by crc32.c\n */\n"
368 /* write out big-endian CRC table for 64-bit z_word_t to crc32.h */
381 /* write out big-endian CRC table for 32-bit z_word_t to crc32.h */
403 /* write out braid tables for 64-bit z_word_t to crc32.h */
429 /* write out braid tables for 32-bit z_word_t to crc32.h */
460 /* write out zeros operator table to crc32.h */
548 * This function can be used by asm versions of crc32(), and to force the
564 * -march=armv8-a+crc, or -march=native if the compile machine has the crc32
1017 unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf,