Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
Hashing stuff
Collaboration diagram for Hashing stuff:

Macros

#define VOLK_HASH_SEED   0
 Seed used for all hashing. Compile-time configurable.
#define VOLK_HASH32(buf, size, seed)
 Default 32-bit hashing function.
#define VOLK_HASH64(buf, size, seed)
 Default 64-bit hashing function.
#define VOLK_HASH128(buf, size, seed)
 Default 128-bit hashing function.
#define VOLK_HASH(...)
 Default hashing function. Depends on architecture.

Typedefs

typedef XXH32_hash_t VOLK_Hash32
 32-bit hash data type.
typedef XXH64_hash_t VOLK_Hash64
 64-bit hash data type.
typedef XXH128_hash_t VOLK_Hash128
 128-bit hash data type.
typedef VOLK_Hash64 VOLK_Hash
 Default hash data type.

Variables

char * warning_msg []
 Warning messages.
char * error_msg []
char * VOLK_root_path
bool VOLK_env_is_init
 Whether the environment is initialized.

Detailed Description

Macro Definition Documentation

◆ VOLK_HASH_SEED

#define VOLK_HASH_SEED   0

Seed used for all hashing. Compile-time configurable.

Definition at line 175 of file core.h.

◆ VOLK_HASH32

#define VOLK_HASH32 ( buf,
size,
seed )
Value:
XXH32 (buf, size, seed)

Default 32-bit hashing function.

Definition at line 179 of file core.h.

◆ VOLK_HASH64

#define VOLK_HASH64 ( buf,
size,
seed )
Value:
XXH3_64bits_withSeed (buf, size, seed)

Default 64-bit hashing function.

Definition at line 181 of file core.h.

◆ VOLK_HASH128

#define VOLK_HASH128 ( buf,
size,
seed )
Value:
XXH3_128bits_withSeed (buf, size, seed)

Default 128-bit hashing function.

Definition at line 183 of file core.h.

◆ VOLK_HASH

#define VOLK_HASH ( ...)
Value:
VOLK_HASH64 (__VA_ARGS__)
#define VOLK_HASH64(buf, size, seed)
Default 64-bit hashing function.
Definition core.h:181

Default hashing function. Depends on architecture.

Definition at line 186 of file core.h.

Typedef Documentation

◆ VOLK_Hash32

typedef XXH32_hash_t VOLK_Hash32

32-bit hash data type.

Definition at line 204 of file core.h.

◆ VOLK_Hash64

typedef XXH64_hash_t VOLK_Hash64

64-bit hash data type.

Definition at line 206 of file core.h.

◆ VOLK_Hash128

typedef XXH128_hash_t VOLK_Hash128

128-bit hash data type.

Definition at line 208 of file core.h.

◆ VOLK_Hash

Default hash data type.

This is 64 bit long for 64-bit systems.

Definition at line 214 of file core.h.

Variable Documentation

◆ warning_msg

char* warning_msg[]
extern

Warning messages.

The message corresponding to the rc is found by warning_msg[rc - VOLK_MIN_WARNING]. VOLK_strerror() facilitates this.

Definition at line 18 of file core.c.

◆ error_msg

char * error_msg[]

Definition at line 192 of file core.h.

◆ VOLK_root_path

char* VOLK_root_path
extern

Definition at line 46 of file core.c.

◆ VOLK_env_is_init

bool VOLK_env_is_init
extern

Whether the environment is initialized.

This is necessary for most operations. Calling VOLK_init() sets this to true.

Definition at line 11 of file core.c.