Lines Matching defs:z_word_t
62 z_crc_t must be at least 32 bits. z_word_t must be at least as long as
63 z_crc_t. It is assumed here that z_word_t is either 32 bits or 64 bits, and
68 Define W and the associated z_word_t type. If W is not defined, then a
89 typedef Z_U8 z_word_t;
93 typedef Z_U4 z_word_t;
110 Swap the bytes in a z_word_t to convert between little and big endian. Any
115 local z_word_t byte_swap(z_word_t word)
146 local z_word_t FAR crc_big_table[256];
148 local z_word_t FAR crc_braid_big_table[W][256];
149 local void braid OF((z_crc_t [][256], z_word_t [][256], int, int));
153 local void write_table32hi OF((FILE *, const z_word_t FAR *, int));
154 local void write_table64 OF((FILE *, const z_word_t FAR *, int));
301 z_word_t's, and so requires a 64-bit type be available. In that case,
302 z_word_t must be defined to be 64-bits. This code then also generates
303 and writes out the tables for the case that z_word_t is 32 bits.
311 z_word_t big[8][256];
327 /* write out big-endian CRC table for 64-bit z_word_t to crc32.h */
334 "local const z_word_t FAR crc_big_table[] = {\n"
340 /* write out big-endian CRC table for 32-bit z_word_t to crc32.h */
345 "local const z_word_t FAR crc_big_table[] = {\n"
362 /* write out braid tables for 64-bit z_word_t to crc32.h */
376 "local const z_word_t FAR crc_braid_big_table[][256] = {\n");
388 /* write out braid tables for 32-bit z_word_t to crc32.h */
402 "local const z_word_t FAR crc_braid_big_table[][256] = {\n");
457 const z_word_t FAR *table;
477 const z_word_t FAR *table;
499 Generate the little and big-endian braid tables for the given n and z_word_t
504 z_word_t big[][256];
612 z_word_t crc1, crc2;
613 const z_word_t *word;
614 z_word_t val0, val1, val2;
636 word = (z_word_t const *)buf;
710 local z_crc_t crc_word(z_word_t data)
718 local z_word_t crc_word_big(z_word_t data)
748 z_word_t const *words;
752 /* Compute the CRC up to a z_word_t boundary. */
758 /* Compute the CRC on as many N z_word_t blocks as are available. */
761 words = (z_word_t const *)buf;
772 z_word_t word0;
775 z_word_t word1;
778 z_word_t word2;
781 z_word_t word3;
784 z_word_t word4;
787 z_word_t word5;
899 z_word_t crc0, word0, comb;
901 z_word_t crc1, word1;
903 z_word_t crc2, word2;
905 z_word_t crc3, word3;
907 z_word_t crc4, word4;
909 z_word_t crc5, word5;