* Use single crc32 instruction to perform a hash on a 2 bytes value. * Fall back to software crc32 implementation in case ARM CRC is * not supported. */
| 65 | * not supported. |
| 66 | */ |
| 67 | static inline uint32_t |
| 68 | rte_hash_crc_2byte(uint16_t data, uint32_t init_val) |
| 69 | { |
| 70 | if (likely(crc32_alg & CRC32_ARM64)) |
| 71 | return crc32c_arm64_u16(data, init_val); |
| 72 | |
| 73 | return crc32c_2bytes(data, init_val); |
| 74 | } |
| 75 | |
| 76 | /* |
| 77 | * Use single crc32 instruction to perform a hash on a 4 byte value. |
nothing calls this directly
no test coverage detected