* Use single crc32 instruction to perform a hash on a 4 byte value. * Fall back to software crc32 implementation in case ARM CRC is * not supported. */
| 79 | * not supported. |
| 80 | */ |
| 81 | static inline uint32_t |
| 82 | rte_hash_crc_4byte(uint32_t data, uint32_t init_val) |
| 83 | { |
| 84 | if (likely(crc32_alg & CRC32_ARM64)) |
| 85 | return crc32c_arm64_u32(data, init_val); |
| 86 | |
| 87 | return crc32c_1word(data, init_val); |
| 88 | } |
| 89 | |
| 90 | /* |
| 91 | * Use single crc32 instruction to perform a hash on a 8 byte value. |
nothing calls this directly
no test coverage detected