Lines Matching refs:z_word_t
70 z_crc_t must be at least 32 bits. z_word_t must be at least as long as
71 z_crc_t. It is assumed here that z_word_t is either 32 bits or 64 bits, and
76 Define W and the associated z_word_t type. If W is not defined, then a
97 typedef Z_U8 z_word_t;
101 typedef Z_U4 z_word_t;
115 Swap the bytes in a z_word_t to convert between little and big endian. Any
120 local z_word_t byte_swap(z_word_t word) {
203 local z_word_t FAR crc_big_table[256];
205 local z_word_t FAR crc_braid_big_table[W][256];
206 local void braid(z_crc_t [][256], z_word_t [][256], int, int);
210 local void write_table32hi(FILE *, const z_word_t FAR *, int);
211 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) {
532 Generate the little and big-endian braid tables for the given n and z_word_t
535 local void braid(z_crc_t ltl[][256], z_word_t big[][256], int n, int w) {
585 z_word_t crc1, crc2;
586 const z_word_t *word;
587 z_word_t val0, val1, val2;
609 word = (z_word_t const *)buf;
683 local z_crc_t crc_word(z_word_t data) {
690 local z_word_t crc_word_big(z_word_t data) {
779 z_word_t const *words;
783 /* Compute the CRC up to a z_word_t boundary. */
789 /* Compute the CRC on as many N z_word_t blocks as are available. */
792 words = (z_word_t const *)buf;
803 z_word_t word0;
806 z_word_t word1;
809 z_word_t word2;
812 z_word_t word3;
815 z_word_t word4;
818 z_word_t word5;
930 z_word_t crc0, word0, comb;
932 z_word_t crc1, word1;
934 z_word_t crc2, word2;
936 z_word_t crc3, word3;
938 z_word_t crc4, word4;
940 z_word_t crc5, word5;