Lines Matching +defs:init +defs:data
1 /* crc32.c -- compute the CRC-32 of a data stream
183 Run the provided init() function exactly once, even if multiple threads
187 local void once(state, init)
189 void (*init)(void);
196 init();
224 /* Run the provided init() function once. This is not thread-safe. */
225 local void once(state, init)
227 void (*init)(void);
234 init();
266 information needed to generate CRCs on data a byte at a time for all
706 Return the CRC of the W bytes in the word_t data, taking the
707 least-significant byte of the word as the first byte of data, without any pre
710 local z_crc_t crc_word(z_word_t data)
714 data = (data >> 8) ^ crc_table[data & 0xff];
715 return (z_crc_t)data;
718 local z_word_t crc_word_big(z_word_t data)
722 data = (data << 8) ^
723 crc_big_table[(data >> ((W - 1) << 3)) & 0xff];
724 return data;