* 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. */
| 51 | * not supported. |
| 52 | */ |
| 53 | static inline uint32_t |
| 54 | rte_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. |
nothing calls this directly
no test coverage detected