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

Function rte_hash_crc_1byte

dpdk/lib/hash/rte_crc_x86.h:67–74  ·  view source on GitHub ↗

* Use single crc32 instruction to perform a hash on a byte value. * Fall back to software crc32 implementation in case SSE4.2 is * not supported. */

Source from the content-addressed store, hash-verified

65 * not supported.
66 */
67static inline uint32_t
68rte_hash_crc_1byte(uint8_t data, uint32_t init_val)
69{
70 if (likely(crc32_alg & CRC32_SSE42))
71 return crc32c_sse42_u8(data, init_val);
72
73 return crc32c_1byte(data, init_val);
74}
75
76/*
77 * Use single crc32 instruction to perform a hash on a 2 bytes value.

Callers 1

rte_hash_crcFunction · 0.70

Calls 2

crc32c_sse42_u8Function · 0.85
crc32c_1byteFunction · 0.85

Tested by

no test coverage detected