Turnstone Operating System
|
xxHash - Extremely Fast Hash algorithm. More...
#include <types.h>
Macros | |
#define | ___XXHASH_H 0 |
#define | xxhash64_hash(i, l) xxhash64_hash_with_seed(i, l, 0) |
calculate xxhash64 value with seed 0 More... | |
#define | xxhash32_hash(i, l) xxhash32_hash_with_seed(i, l, 0) |
calculate xxhash32 value with seed 0 More... | |
Typedefs | |
typedef struct xxhash64_context_t | xxhash64_context_t |
opaque xxhash64 context structure | |
typedef struct xxhash32_context_t | xxhash32_context_t |
opaque xxhash32 context structure | |
Functions | |
xxhash64_context_t * | xxhash64_init (uint64_t seed) |
initialize xxhash64 context More... | |
int8_t | xxhash64_update (xxhash64_context_t *ctx, const void *input, uint64_t length) |
update xxhash64 context More... | |
uint64_t | xxhash64_final (xxhash64_context_t *ctx) |
finalize xxhash64 context More... | |
uint64_t | xxhash64_hash_with_seed (const void *input, uint64_t length, uint64_t seed) |
calculate xxhash64 value More... | |
xxhash32_context_t * | xxhash32_init (uint32_t seed) |
initialize xxhash32 context More... | |
int8_t | xxhash32_update (xxhash32_context_t *ctx, const void *input, uint64_t length) |
update xxhash32 context More... | |
uint32_t | xxhash32_final (xxhash32_context_t *ctx) |
finalize xxhash32 context More... | |
uint32_t | xxhash32_hash_with_seed (const void *input, uint64_t length, uint32_t seed) |
calculate xxhash32 value More... | |
xxHash - Extremely Fast Hash algorithm.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
#define ___XXHASH_H 0 |
macro for preventing multiple inclusions
#define xxhash32_hash | ( | i, | |
l | |||
) | xxhash32_hash_with_seed(i, l, 0) |
calculate xxhash32 value with seed 0
[in] | i | input data |
[in] | l | input data length |
#define xxhash64_hash | ( | i, | |
l | |||
) | xxhash64_hash_with_seed(i, l, 0) |
calculate xxhash64 value with seed 0
[in] | i | input data |
[in] | l | input data length |
uint32_t xxhash32_final | ( | xxhash32_context_t * | ctx | ) |
finalize xxhash32 context
call this function after calling xxhash32_update(), also destroy xxhash32 context
[in] | ctx | xxhash32 context |
calculate xxhash32 value
[in] | input | input data |
[in] | length | input data length |
[in] | seed | seed value |
xxhash32_context_t * xxhash32_init | ( | uint32_t | seed | ) |
initialize xxhash32 context
[in] | seed | seed value |
int8_t xxhash32_update | ( | xxhash32_context_t * | ctx, |
const void * | input, | ||
uint64_t | length | ||
) |
update xxhash32 context
[in] | ctx | xxhash32 context |
[in] | input | input data |
[in] | length | input data length |
uint64_t xxhash64_final | ( | xxhash64_context_t * | ctx | ) |
finalize xxhash64 context
call this function after calling xxhash64_update(), also destroy xxhash64 context
[in] | ctx | xxhash64 context |
calculate xxhash64 value
[in] | input | input data |
[in] | length | input data length |
[in] | seed | seed value |
xxhash64_context_t * xxhash64_init | ( | uint64_t | seed | ) |
initialize xxhash64 context
[in] | seed | seed value |
int8_t xxhash64_update | ( | xxhash64_context_t * | ctx, |
const void * | input, | ||
uint64_t | length | ||
) |
update xxhash64 context
[in] | ctx | xxhash64 context |
[in] | input | input data |
[in] | length | input data length |