|
| #define | XXH_X86DISPATCH_ALLOW_AVX |
| | Disables the AVX sanity check. More...
|
| |
|
#define | XXH_HAS_INCLUDE(header) 0 |
| |
| #define | XXH_DISPATCH_SCALAR 1 |
| | Enables/dispatching the scalar code path. More...
|
| |
| #define | XXH_DISPATCH_AVX2 0 |
| | Enables/disables dispatching for AVX2. More...
|
| |
| #define | XXH_DISPATCH_AVX512 0 |
| | Enables/disables dispatching for AVX512. More...
|
| |
|
#define | XXH_debugPrint(str) ((void)0) |
| |
|
#define | NDEBUG |
| |
|
#define | XXH_INLINE_ALL |
| |
|
#define | XXH_X86DISPATCH |
| |
|
#define | XXH_I_ATT(intel, att) "{" att "|" intel "}\n\t" |
| |
|
#define | XXH_SSE2_CPUID_MASK (1 << 26) |
| |
|
#define | XXH_OSXSAVE_CPUID_MASK ((1 << 26) | (1 << 27)) |
| |
|
#define | XXH_AVX2_CPUID_MASK (1 << 5) |
| |
|
#define | XXH_AVX2_XGETBV_MASK ((1 << 2) | (1 << 1)) |
| |
|
#define | XXH_AVX512F_CPUID_MASK (1 << 16) |
| |
|
#define | XXH_AVX512F_XGETBV_MASK ((7 << 5) | (1 << 2) | (1 << 1)) |
| |
| #define | XXH_DEFINE_DISPATCH_FUNCS(suffix, target) |
| | Defines the various dispatch functions. More...
|
| |
|
#define | XXH_NB_DISPATCHES 4 |
| |
|
|
typedef XXH64_hash_t(* | XXH3_dispatchx86_hashLong64_default) (const void *restrict, size_t) |
| |
|
typedef XXH64_hash_t(* | XXH3_dispatchx86_hashLong64_withSeed) (const void *restrict, size_t, XXH64_hash_t) |
| |
|
typedef XXH64_hash_t(* | XXH3_dispatchx86_hashLong64_withSecret) (const void *restrict, size_t, const void *restrict, size_t) |
| |
|
typedef XXH_errorcode(* | XXH3_dispatchx86_update) (XXH3_state_t *, const void *, size_t) |
| |
|
typedef XXH128_hash_t(* | XXH3_dispatchx86_hashLong128_default) (const void *restrict, size_t) |
| |
|
typedef XXH128_hash_t(* | XXH3_dispatchx86_hashLong128_withSeed) (const void *restrict, size_t, XXH64_hash_t) |
| |
|
typedef XXH128_hash_t(* | XXH3_dispatchx86_hashLong128_withSecret) (const void *restrict, size_t, const void *restrict, size_t) |
| |
|
| static void | XXH_cpuid (xxh_u32 eax, xxh_u32 ecx, xxh_u32 *abcd) |
| | Runs CPUID. More...
|
| |
| static int | XXH_featureTest (void) |
| | Returns the best XXH3 implementation. More...
|
| |
| static void | XXH_setDispatch (void) |
| | Runs a CPUID check and sets the correct dispatch tables. More...
|
| |
|
static XXH64_hash_t | XXH3_hashLong_64b_defaultSecret_selection (const void *input, size_t len, XXH64_hash_t seed64, const xxh_u8 *secret, size_t secretLen) |
| |
|
XXH64_hash_t | XXH3_64bits_dispatch (const void *input, size_t len) |
| |
|
static XXH64_hash_t | XXH3_hashLong_64b_withSeed_selection (const void *input, size_t len, XXH64_hash_t seed64, const xxh_u8 *secret, size_t secretLen) |
| |
|
XXH64_hash_t | XXH3_64bits_withSeed_dispatch (const void *input, size_t len, XXH64_hash_t seed) |
| |
|
static XXH64_hash_t | XXH3_hashLong_64b_withSecret_selection (const void *input, size_t len, XXH64_hash_t seed64, const xxh_u8 *secret, size_t secretLen) |
| |
|
XXH64_hash_t | XXH3_64bits_withSecret_dispatch (const void *input, size_t len, const void *secret, size_t secretLen) |
| |
|
XXH_errorcode | XXH3_64bits_update_dispatch (XXH3_state_t *state, const void *input, size_t len) |
| |
|
static XXH128_hash_t | XXH3_hashLong_128b_defaultSecret_selection (const void *input, size_t len, XXH64_hash_t seed64, const void *secret, size_t secretLen) |
| |
|
XXH128_hash_t | XXH3_128bits_dispatch (const void *input, size_t len) |
| |
|
static XXH128_hash_t | XXH3_hashLong_128b_withSeed_selection (const void *input, size_t len, XXH64_hash_t seed64, const void *secret, size_t secretLen) |
| |
|
XXH128_hash_t | XXH3_128bits_withSeed_dispatch (const void *input, size_t len, XXH64_hash_t seed) |
| |
|
static XXH128_hash_t | XXH3_hashLong_128b_withSecret_selection (const void *input, size_t len, XXH64_hash_t seed64, const void *secret, size_t secretLen) |
| |
|
XXH128_hash_t | XXH3_128bits_withSecret_dispatch (const void *input, size_t len, const void *secret, size_t secretLen) |
| |
|
XXH_errorcode | XXH3_128bits_update_dispatch (XXH3_state_t *state, const void *input, size_t len) |
| |
Automatic dispatcher code for the XXH3 family on x86-based targets.
Optional add-on.
Compile this file with the default flags for your target. Do not compile with flags like -mavx*, -march=native, or /arch:AVX*, there will be an error. See XXH_X86DISPATCH_ALLOW_AVX for details.