11 #ifndef ODP_API_SPEC_HASH_H_
12 #define ODP_API_SPEC_HASH_H_
13 #include <odp/visibility_begin.h>
37 uint32_t
odp_hash_crc32(
const void *data, uint32_t data_len, uint32_t init_val);
97 #include <odp/visibility_end.h>
Standard C language types and definitions for ODP.
uint32_t odp_hash_crc32(const void *data, uint32_t data_len, uint32_t init_val)
Calculate CRC-32.
int odp_hash_crc_gen64(const void *data, uint32_t data_len, uint64_t init_val, odp_hash_crc_param_t *crc_param, uint64_t *crc)
Calculate up to 64 bit CRC using the given parameters.
uint32_t odp_hash_crc32c(const void *data, uint32_t data_len, uint32_t init_val)
Calculate CRC-32C.
struct odp_hash_crc_param_t odp_hash_crc_param_t
CRC parameters.
bool odp_bool_t
Boolean type.
uint64_t xor_out
XOR this value to CRC output (stored in 'width' LSB bits)
odp_bool_t reflect_out
0: don't reflect, 1: reflect bits in output bytes
uint32_t width
CRC width in bits.
uint64_t poly
Polynomial (stored in 'width' LSB bits)
odp_bool_t reflect_in
0: don't reflect, 1: reflect bits in input bytes