MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_crc_table

Function get_crc_table

freebsd/contrib/zlib/crc32.c:188–195  ·  view source on GitHub ↗

========================================================================= * This function can be used by asm versions of crc32() */

Source from the content-addressed store, hash-verified

186 * This function can be used by asm versions of crc32()
187 */
188const z_crc_t FAR * ZEXPORT get_crc_table()
189{
190#ifdef DYNAMIC_CRC_TABLE
191 if (crc_table_empty)
192 make_crc_table();
193#endif /* DYNAMIC_CRC_TABLE */
194 return (const z_crc_t FAR *)crc_table;
195}
196
197/* ========================================================================= */
198#define DO1 crc = crc_table[0][((int)crc ^ (*buf++)) & 0xff] ^ (crc >> 8)

Callers 1

OFFunction · 0.85

Calls 1

make_crc_tableFunction · 0.85

Tested by

no test coverage detected