Searched refs:crc_table (Results 1 – 2 of 2) sorted by relevance
/busybox-1.35.0/libbb/ |
D | crc32.c | 22 uint32_t* FAST_FUNC crc32_filltable(uint32_t *crc_table, int endian) in crc32_filltable() argument 28 if (!crc_table) in crc32_filltable() 29 crc_table = xmalloc(256 * sizeof(uint32_t)); in crc32_filltable() 39 *crc_table++ = c; in crc32_filltable() 42 return crc_table - 256; in crc32_filltable() 55 …2_t FAST_FUNC crc32_block_endian1(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table) in crc32_block_endian1() argument 60 val = (val << 8) ^ crc_table[(val >> 24) ^ *(uint8_t*)buf]; in crc32_block_endian1() 66 …2_t FAST_FUNC crc32_block_endian0(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table) in crc32_block_endian0() argument 71 val = crc_table[(uint8_t)val ^ *(uint8_t*)buf] ^ (val >> 8); in crc32_block_endian0()
|
/busybox-1.35.0/include/ |
D | libbb.h | 2183 uint32_t crc32_block_endian1(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table) FAST… 2184 uint32_t crc32_block_endian0(uint32_t val, const void *buf, unsigned len, uint32_t *crc_table) FAST…
|