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

Function crc32c_2bytes

dpdk/lib/hash/rte_crc_sw.h:370–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370static inline uint32_t
371crc32c_2bytes(uint16_t data, uint32_t init_val)
372{
373 uint32_t crc;
374 crc = init_val;
375 crc ^= data;
376
377 crc = CRC32_UPD(crc, 1) ^ (crc >> 16);
378
379 return crc;
380}
381
382static inline uint32_t
383crc32c_1word(uint32_t data, uint32_t init_val)

Callers 3

rte_hash_crc_2byteFunction · 0.85
rte_hash_crc_2byteFunction · 0.85
rte_hash_crc_2byteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected