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

Function crc32c_1word

dpdk/lib/hash/rte_crc_sw.h:382–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382static inline uint32_t
383crc32c_1word(uint32_t data, uint32_t init_val)
384{
385 uint32_t crc, term1, term2;
386 crc = init_val;
387 crc ^= data;
388
389 term1 = CRC32_UPD(crc, 3);
390 term2 = crc >> 16;
391 crc = term1 ^ CRC32_UPD(term2, 1);
392
393 return crc;
394}
395
396static inline uint32_t
397crc32c_2words(uint64_t data, uint32_t init_val)

Callers 3

rte_hash_crc_4byteFunction · 0.85
rte_hash_crc_4byteFunction · 0.85
rte_hash_crc_4byteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected