|
DPDK 25.11.0
|
#include <stdint.h>#include <rte_branch_prediction.h>#include <rte_common.h>#include <rte_config.h>#include "rte_crc_sw.h"#include "rte_crc_generic.h"Go to the source code of this file.
Functions | |
| void | rte_hash_crc_set_alg (uint8_t alg) |
| static uint32_t | rte_hash_crc_1byte (uint8_t data, uint32_t init_val) |
| static uint32_t | rte_hash_crc_2byte (uint16_t data, uint32_t init_val) |
| static uint32_t | rte_hash_crc_4byte (uint32_t data, uint32_t init_val) |
| static uint32_t | rte_hash_crc_8byte (uint64_t data, uint32_t init_val) |
| static uint32_t | rte_hash_crc (const void *data, uint32_t data_len, uint32_t init_val) |
RTE CRC Hash
Definition in file rte_hash_crc.h.
| void rte_hash_crc_set_alg | ( | uint8_t | alg | ) |
Allow or disallow use of SSE4.2/ARMv8 intrinsics for CRC32 hash calculation.
| alg | An OR of following flags:
|
|
inlinestatic |
Use single CRC32 instruction to perform a hash on a byte value.
| data | Data to perform hash on. |
| init_val | Value to initialise hash generator. |
|
inlinestatic |
Use single CRC32 instruction to perform a hash on a 2 bytes value.
| data | Data to perform hash on. |
| init_val | Value to initialise hash generator. |
|
inlinestatic |
Use single CRC32 instruction to perform a hash on a 4 bytes value.
| data | Data to perform hash on. |
| init_val | Value to initialise hash generator. |
|
inlinestatic |
Use single CRC32 instruction to perform a hash on a 8 bytes value.
| data | Data to perform hash on. |
| init_val | Value to initialise hash generator. |
|
inlinestatic |
Calculate CRC32 hash on user-supplied byte array.
| data | Data to perform hash on. |
| data_len | How many bytes to use to calculate hash value. |
| init_val | Value to initialise hash generator. |
Definition at line 125 of file rte_hash_crc.h.