#include "xxhash.h"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
FORCE_INLINE U32 | XXH_readLE32_align (const void *ptr, XXH_endianess endian, XXH_alignment align) |
|
FORCE_INLINE U32 | XXH_readLE32 (const void *ptr, XXH_endianess endian) |
|
FORCE_INLINE U64 | XXH_readLE64_align (const void *ptr, XXH_endianess endian, XXH_alignment align) |
|
FORCE_INLINE U64 | XXH_readLE64 (const void *ptr, XXH_endianess endian) |
|
FORCE_INLINE U32 | XXH32_endian_align (const void *input, size_t len, U32 seed, XXH_endianess endian, XXH_alignment align) |
|
unsigned int | XXH32 (const void *input, size_t len, unsigned seed) |
|
FORCE_INLINE U64 | XXH64_endian_align (const void *input, size_t len, U64 seed, XXH_endianess endian, XXH_alignment align) |
|
unsigned long long | XXH64 (const void *input, size_t len, unsigned long long seed) |
|
XXH32_state_t * | XXH32_createState (void) |
|
XXH_errorcode | XXH32_freeState (XXH32_state_t *statePtr) |
|
XXH64_state_t * | XXH64_createState (void) |
|
XXH_errorcode | XXH64_freeState (XXH64_state_t *statePtr) |
|
XXH_errorcode | XXH32_reset (XXH32_state_t *state_in, U32 seed) |
|
XXH_errorcode | XXH64_reset (XXH64_state_t *state_in, unsigned long long seed) |
|
FORCE_INLINE XXH_errorcode | XXH32_update_endian (XXH32_state_t *state_in, const void *input, size_t len, XXH_endianess endian) |
|
XXH_errorcode | XXH32_update (XXH32_state_t *state_in, const void *input, size_t len) |
|
FORCE_INLINE U32 | XXH32_digest_endian (const XXH32_state_t *state_in, XXH_endianess endian) |
|
U32 | XXH32_digest (const XXH32_state_t *state_in) |
|
FORCE_INLINE XXH_errorcode | XXH64_update_endian (XXH64_state_t *state_in, const void *input, size_t len, XXH_endianess endian) |
|
XXH_errorcode | XXH64_update (XXH64_state_t *state_in, const void *input, size_t len) |
|
FORCE_INLINE U64 | XXH64_digest_endian (const XXH64_state_t *state_in, XXH_endianess endian) |
|
unsigned long long | XXH64_digest (const XXH64_state_t *state_in) |
|
#define A32 |
( |
|
x) | |
(((U32_S *)(x))->v) |
#define A64 |
( |
|
x) | |
(((U64_S *)(x))->v) |
#define FORCE_INLINE static |
#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
#define PRIME32_1 2654435761U |
#define PRIME32_2 2246822519U |
#define PRIME32_3 3266489917U |
#define PRIME32_4 668265263U |
#define PRIME32_5 374761393U |
#define PRIME64_1 11400714785074694791ULL |
#define PRIME64_2 14029467366897019727ULL |
#define PRIME64_3 1609587929392839161ULL |
#define PRIME64_4 9650029242287828579ULL |
#define PRIME64_5 2870177450012600261ULL |
#define XXH_CPU_LITTLE_ENDIAN (*(char*)(&one)) |
#define XXH_FORCE_NATIVE_FORMAT 0 |
#define XXH_rotl32 |
( |
|
x, |
|
|
|
r |
|
) |
| ((x << r) | (x >> (32 - r))) |
#define XXH_rotl64 |
( |
|
x, |
|
|
|
r |
|
) |
| ((x << r) | (x >> (64 - r))) |
#define XXH_STATIC_ASSERT |
( |
|
c) | |
{ enum { XXH_static_assert = 1/(!!(c)) }; } /* use only *after* variable declarations */ |
typedef unsigned char BYTE |
typedef unsigned short U16 |
typedef unsigned long long U64 |
Enumerator |
---|
XXH_aligned |
|
XXH_unaligned |
|
Definition at line 229 of file xxhash.c.
Enumerator |
---|
XXH_bigEndian |
|
XXH_littleEndian |
|
Definition at line 213 of file xxhash.c.
unsigned int XXH32 |
( |
const void * |
input, |
|
|
size_t |
len, |
|
|
unsigned |
seed |
|
) |
| |
unsigned long long XXH64 |
( |
const void * |
input, |
|
|
size_t |
len, |
|
|
unsigned long long |
seed |
|
) |
| |