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_arm64.h:53–60  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

51 * not supported.
52 */
53static inline uint32_t
54rte_hash_crc_1byte(uint8_t data, uint32_t init_val)
55{
56 if (likely(crc32_alg & CRC32_ARM64))
57 return crc32c_arm64_u8(data, init_val);
58
59 return crc32c_1byte(data, init_val);
60}
61
62/*
63 * Use single crc32 instruction to perform a hash on a 2 bytes value.

Callers

nothing calls this directly

Calls 2

crc32c_arm64_u8Function · 0.85
crc32c_1byteFunction · 0.85

Tested by

no test coverage detected