* Use single crc32 instruction to perform a hash on a 4 byte value. * Fall back to software crc32 implementation in case SSE4.2 is * not supported. */
| 93 | * not supported. |
| 94 | */ |
| 95 | static inline uint32_t |
| 96 | rte_hash_crc_4byte(uint32_t data, uint32_t init_val) |
| 97 | { |
| 98 | if (likely(crc32_alg & CRC32_SSE42)) |
| 99 | return crc32c_sse42_u32(data, init_val); |
| 100 | |
| 101 | return crc32c_1word(data, init_val); |
| 102 | } |
| 103 | |
| 104 | /* |
| 105 | * Use single crc32 instruction to perform a hash on a 8 byte value. |
no test coverage detected