#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | XXH32_canonical_t |
Canonical (big endian) representation of XXH32_hash_t. More... | |
struct | XXH64_canonical_t |
Macros | |
#define | XXH_PUBLIC_API /* do nothing */ |
#define | XXH_VERSION_MAJOR 0 |
#define | XXH_VERSION_MINOR 6 |
#define | XXH_VERSION_NUMBER (XXH_VERSION_MAJOR *100*100 + XXH_VERSION_MINOR *100 + XXH_VERSION_RELEASE) |
#define | XXH_VERSION_RELEASE 5 |
Typedefs | |
typedef unsigned int | XXH32_hash_t |
typedef struct XXH32_state_s | XXH32_state_t |
typedef unsigned long long | XXH64_hash_t |
typedef struct XXH64_state_s | XXH64_state_t |
Enumerations | |
enum | XXH_errorcode { XXH_OK =0, XXH_ERROR } |
xxHash prototypes and implementation
Definition in file xxhash.h.
#define XXH_PUBLIC_API /* do nothing */ |
XXH_INLINE_ALL (and XXH_PRIVATE_API) This is useful to include xxhash functions in static
mode in order to inline them, and remove their symbol from the public list. Inlining can offer dramatic performance improvement on small keys. Methodology : #define XXH_INLINE_ALL #include "xxhash.h" xxhash.c
is automatically included. It's not useful to compile and link it as a separate module.
#define XXH_VERSION_MAJOR 0 |
XXH_NAMESPACE, aka Namespace Emulation :
If you want to include and expose xxHash functions from within your own library, but also want to avoid symbol collisions with other libraries which may also include xxHash,
you can use XXH_NAMESPACE, to automatically prefix any public symbol from xxhash library with the value of XXH_NAMESPACE (therefore, avoid NULL and numeric values).
Note that no change is required within the calling program as long as it includes xxhash.h
: regular symbol name will be automatically translated by this header.
#define XXH_VERSION_NUMBER (XXH_VERSION_MAJOR *100*100 + XXH_VERSION_MINOR *100 + XXH_VERSION_RELEASE) |
typedef unsigned int XXH32_hash_t |
typedef struct XXH32_state_s XXH32_state_t |
typedef unsigned long long XXH64_hash_t |
typedef struct XXH64_state_s XXH64_state_t |
enum XXH_errorcode |
XXH_PUBLIC_API XXH32_state_t* XXH32_createState | ( | void | ) |
XXH_PUBLIC_API XXH64_state_t* XXH64_createState | ( | void | ) |
XXH_PUBLIC_API unsigned XXH_versionNumber | ( | void | ) |