#include "xxhash.h"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
typedef unsigned char | BYTE |
|
typedef signed int | S32 |
|
typedef unsigned short | U16 |
|
typedef unsigned int | U32 |
|
typedef struct _U32_S | U32_S |
|
typedef unsigned long long | U64 |
|
|
U32 | XXH32 (const void *input, int len, U32 seed) |
|
U32 | XXH32_digest (void *state_in) |
|
FORCE_INLINE U32 | XXH32_endian_align (const void *input, int len, U32 seed, XXH_endianess endian, XXH_alignment align) |
|
void * | XXH32_init (U32 seed) |
|
U32 | XXH32_intermediateDigest (void *state_in) |
|
FORCE_INLINE U32 | XXH32_intermediateDigest_endian (void *state_in, XXH_endianess endian) |
|
XXH_errorcode | XXH32_resetState (void *state_in, U32 seed) |
|
int | XXH32_sizeofState () |
|
XXH_errorcode | XXH32_update (void *state_in, const void *input, int len) |
|
FORCE_INLINE XXH_errorcode | XXH32_update_endian (void *state_in, const void *input, int len, XXH_endianess endian) |
|
FORCE_INLINE void | XXH_free (void *p) |
|
FORCE_INLINE void * | XXH_malloc (size_t s) |
|
FORCE_INLINE void * | XXH_memcpy (void *dest, const void *src, size_t size) |
|
FORCE_INLINE U32 | XXH_readLE32 (const U32 *ptr, XXH_endianess endian) |
|
FORCE_INLINE U32 | XXH_readLE32_align (const U32 *ptr, XXH_endianess endian, XXH_alignment align) |
|
static U32 | XXH_swap32 (U32 x) |
|
#define A32 |
( |
|
x | ) |
(((U32_S *)(x))->v) |
#define FORCE_INLINE static inline |
#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 XXH_CPU_LITTLE_ENDIAN (*(char*)(&one)) |
#define XXH_FORCE_NATIVE_FORMAT 0 |
#define XXH_rotl32 |
( |
|
x, |
|
|
|
r |
|
) |
| ((x << r) | (x >> (32 - r))) |
#define XXH_STATIC_ASSERT |
( |
|
c | ) |
{ enum { XXH_static_assert = 1/(!!(c)) }; } |
typedef unsigned char BYTE |
typedef unsigned short U16 |
typedef unsigned long long U64 |
Enumerator |
---|
XXH_aligned |
|
XXH_unaligned |
|
Definition at line 190 of file xxhash.c.
Enumerator |
---|
XXH_bigEndian |
|
XXH_littleEndian |
|
Definition at line 174 of file xxhash.c.
U32 XXH32 |
( |
const void * |
input, |
|
|
int |
len, |
|
|
U32 |
seed |
|
) |
| |
U32 XXH32_digest |
( |
void * |
state_in | ) |
|
void* XXH32_init |
( |
U32 |
seed | ) |
|
U32 XXH32_intermediateDigest |
( |
void * |
state_in | ) |
|
int XXH32_sizeofState |
( |
| ) |
|
XXH_errorcode XXH32_update |
( |
void * |
state_in, |
|
|
const void * |
input, |
|
|
int |
len |
|
) |
| |
FORCE_INLINE void* XXH_memcpy |
( |
void * |
dest, |
|
|
const void * |
src, |
|
|
size_t |
size |
|
) |
| |
static U32 XXH_swap32 |
( |
U32 |
x | ) |
|
|
inlinestatic |