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

Function crc32c_1byte

dpdk/lib/hash/rte_crc_sw.h:360–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 crc32c_tables[(n)-1][((crc) >> 8) & 0xFF])
359
360static inline uint32_t
361crc32c_1byte(uint8_t data, uint32_t init_val)
362{
363 uint32_t crc;
364 crc = init_val;
365 crc ^= data;
366
367 return crc32c_tables[0][crc & 0xff] ^ (crc >> 8);
368}
369
370static inline uint32_t
371crc32c_2bytes(uint16_t data, uint32_t init_val)

Callers 3

rte_hash_crc_1byteFunction · 0.85
rte_hash_crc_1byteFunction · 0.85
rte_hash_crc_1byteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected