DPDK
2.0.0
|
#include <stdint.h>
#include <rte_cpuflags.h>
#include <rte_branch_prediction.h>
#include <rte_common.h>
Functions | |
static void | rte_hash_crc_set_alg (uint8_t alg) |
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
|
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. |
|
inlinestatic |
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
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 byte value. Fall back to software crc32 implementation in case SSE4.2 is not supported
data | Data to perform hash on. |
init_val | Value to initialise hash generator. |
|
inlinestatic |
Allow or disallow use of SSE4.2 instrinsics for CRC32 hash calculation.
alg | An OR of following flags:
|