#include <stdint.h>#include <stddef.h>Go to the source code of this file.
Functions | |
| uint32_t | ck_murmurhash3 (const char *key, uint32_t len, uint32_t seed) |
| void | ck_murmurhash3_128 (const void *key, size_t len, uint32_t seed, uint64_t *out1, uint64_t *out2) |
| uint32_t | ck_murmurhash3_32 (const void *key, size_t len, uint32_t seed) |
| static uint32_t | ck_murmurhash3_str (const char *str, uint32_t seed) |
| static uint32_t | ck_murmurhash3_strn (const char *str, size_t len, uint32_t seed) |
| uint32_t ck_murmurhash3 | ( | const char * | key, |
| uint32_t | len, | ||
| uint32_t | seed | ||
| ) |
MurmurHash3-32bit hash function (original HPC_Embeddings version).
| key | Data to hash |
| len | Length in bytes |
| seed | Seed value |
Definition at line 11 of file murmurhash3.c.
Referenced by ck_murmurhash3_32(), ck_murmurhash3_str(), ck_murmurhash3_strn(), and ck_tokenizer_hash().
| void ck_murmurhash3_128 | ( | const void * | key, |
| size_t | len, | ||
| uint32_t | seed, | ||
| uint64_t * | out1, | ||
| uint64_t * | out2 | ||
| ) |
MurmurHash3-128bit hash function (produces two 64-bit values).
| key | Data to hash |
| len | Length in bytes |
| seed | Optional seed value (use 0 for default) |
| out1 | First 64 bits of hash output |
| out2 | Second 64 bits of hash output |
| uint32_t ck_murmurhash3_32 | ( | const void * | key, |
| size_t | len, | ||
| uint32_t | seed | ||
| ) |
MurmurHash3-32bit hash function (alternative name).
| key | Data to hash |
| len | Length in bytes |
| seed | Optional seed value (use 0 for default) |
Definition at line 68 of file murmurhash3.c.
References ck_murmurhash3().
Referenced by ck_murmurhash3_str().
|
inlinestatic |
MurmurHash3-32bit for string (null-terminated).
Definition at line 55 of file murmurhash3.h.
References ck_murmurhash3_32().
Referenced by ck_tokenizer_hash_str().
|
inlinestatic |
MurmurHash3-32bit for string with length.
Definition at line 62 of file murmurhash3.h.
References ck_murmurhash3().