Harlinn.Windows 0.1
Loading...
Searching...
No Matches
xxh_x86dispatch.c File Reference
#include <assert.h>
#include "xxhash.h"
Include dependency graph for xxh_x86dispatch.c:

Classes

struct  XXH_dispatchFunctions_s
 
struct  XXH_dispatch128Functions_s
 

Macros

#define XXH_HAS_INCLUDE(header)
 
#define XXH_DISPATCH_SCALAR   1
 Enables/dispatching the scalar code path.
 
#define XXH_DISPATCH_AVX2   0
 Enables/disables dispatching for AVX2.
 
#define XXH_DISPATCH_AVX512   0
 Enables/disables dispatching for AVX512.
 
#define XXH_debugPrint(str)
 
#define NDEBUG
 
#define XXH_INLINE_ALL
 
#define XXH_X86DISPATCH
 
#define XXH_I_ATT(intel, att)
 
#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)
 
#define XXH_NB_DISPATCHES   4
 

Typedefs

typedef XXH64_hash_t(* XXH3_dispatchx86_hashLong64_default) (const void *XXH_RESTRICT, size_t)
 
typedef XXH64_hash_t(* XXH3_dispatchx86_hashLong64_withSeed) (const void *XXH_RESTRICT, size_t, XXH64_hash_t)
 
typedef XXH64_hash_t(* XXH3_dispatchx86_hashLong64_withSecret) (const void *XXH_RESTRICT, size_t, const void *XXH_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 *XXH_RESTRICT, size_t)
 
typedef XXH128_hash_t(* XXH3_dispatchx86_hashLong128_withSeed) (const void *XXH_RESTRICT, size_t, XXH64_hash_t)
 
typedef XXH128_hash_t(* XXH3_dispatchx86_hashLong128_withSecret) (const void *XXH_RESTRICT, size_t, const void *XXH_RESTRICT, size_t)
 

Functions

static void XXH_cpuid (xxh_u32 eax, xxh_u32 ecx, xxh_u32 *abcd)
 
static int XXH_featureTest (void)
 
static void XXH_setDispatch (void)
 
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)
 

Variables

static const XXH_dispatchFunctions_s XXH_kDispatch [XXH_NB_DISPATCHES]
 
static XXH_dispatchFunctions_s XXH_g_dispatch = { NULL, NULL, NULL, NULL }
 
static const XXH_dispatch128Functions_s XXH_kDispatch128 [XXH_NB_DISPATCHES]
 
static XXH_dispatch128Functions_s XXH_g_dispatch128 = { NULL, NULL, NULL, NULL }
 

Detailed Description

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.