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

Function rte_hash_crc_8byte

dpdk/lib/hash/rte_crc_arm64.h:95–102  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

93 * not supported.
94 */
95static inline uint32_t
96rte_hash_crc_8byte(uint64_t data, uint32_t init_val)
97{
98 if (likely(crc32_alg & CRC32_ARM64))
99 return crc32c_arm64_u64(data, init_val);
100
101 return crc32c_2words(data, init_val);
102}
103
104#endif /* _RTE_CRC_ARM64_H_ */

Callers

nothing calls this directly

Calls 2

crc32c_arm64_u64Function · 0.85
crc32c_2wordsFunction · 0.85

Tested by

no test coverage detected