Lines Matching refs:z_word_t

64   z_crc_t must be at least 32 bits. z_word_t must be at least as long as
65 z_crc_t. It is assumed here that z_word_t is either 32 bits or 64 bits, and
70 Define W and the associated z_word_t type. If W is not defined, then a
91 typedef Z_U8 z_word_t;
95 typedef Z_U4 z_word_t;
108 Swap the bytes in a z_word_t to convert between little and big endian. Any
113 local z_word_t byte_swap(z_word_t word)
199 local z_word_t FAR crc_big_table[256];
201 local z_word_t FAR crc_braid_big_table[W][256];
202 local void braid(z_crc_t [][256], z_word_t [][256], int, int);
206 local void write_table32hi(FILE *, const z_word_t FAR *, int);
207 local void write_table64(FILE *, const z_word_t FAR *, int);
347 z_word_t's, and so requires a 64-bit type be available. In that case,
348 z_word_t must be defined to be 64-bits. This code then also generates
349 and writes out the tables for the case that z_word_t is 32 bits.
357 z_word_t big[8][256];
373 /* write out big-endian CRC table for 64-bit z_word_t to crc32.h */
380 "local const z_word_t FAR crc_big_table[] = {\n"
386 /* write out big-endian CRC table for 32-bit z_word_t to crc32.h */
391 "local const z_word_t FAR crc_big_table[] = {\n"
408 /* write out braid tables for 64-bit z_word_t to crc32.h */
422 "local const z_word_t FAR crc_braid_big_table[][256] = {\n");
434 /* write out braid tables for 32-bit z_word_t to crc32.h */
448 "local const z_word_t FAR crc_braid_big_table[][256] = {\n");
497 local void write_table32hi(FILE *out, const z_word_t FAR *table, int k) {
513 local void write_table64(FILE *out, const z_word_t FAR *table, int k) {
533 Generate the little and big-endian braid tables for the given n and z_word_t
536 local void braid(z_crc_t ltl[][256], z_word_t big[][256], int n, int w)
587 z_word_t crc1, crc2;
588 const z_word_t *word;
589 z_word_t val0, val1, val2;
611 word = (z_word_t const *)buf;
685 local z_crc_t crc_word(z_word_t data)
693 local z_word_t crc_word_big(z_word_t data)
722 z_word_t const *words;
726 /* Compute the CRC up to a z_word_t boundary. */
732 /* Compute the CRC on as many N z_word_t blocks as are available. */
735 words = (z_word_t const *)buf;
746 z_word_t word0;
749 z_word_t word1;
752 z_word_t word2;
755 z_word_t word3;
758 z_word_t word4;
761 z_word_t word5;
873 z_word_t crc0, word0, comb;
875 z_word_t crc1, word1;
877 z_word_t crc2, word2;
879 z_word_t crc3, word3;
881 z_word_t crc4, word4;
883 z_word_t crc5, word5;