* Use single crc32 instruction to perform a hash on a byte value. * Fall back to software crc32 implementation in case SSE4.2 is * not supported. */
| 65 | * not supported. |
| 66 | */ |
| 67 | static inline uint32_t |
| 68 | rte_hash_crc_1byte(uint8_t data, uint32_t init_val) |
| 69 | { |
| 70 | if (likely(crc32_alg & CRC32_SSE42)) |
| 71 | return crc32c_sse42_u8(data, init_val); |
| 72 | |
| 73 | return crc32c_1byte(data, init_val); |
| 74 | } |
| 75 | |
| 76 | /* |
| 77 | * Use single crc32 instruction to perform a hash on a 2 bytes value. |
no test coverage detected