functions for hashin strings, C translation of cityhash (C++, google)
More...
#include <stdlib.h>
#include <stdint.h>
Go to the source code of this file.
|
#define | Uint128Low64(x) (x).first |
|
#define | Uint128High64(x) (x).second |
|
|
typedef uint8_t | uint8 |
|
typedef uint16_t | uint16 |
|
typedef uint32_t | uint32 |
|
typedef uint64_t | uint64 |
|
typedef struct _uint128 | uint128 |
|
|
uint64_t | CityHash64 (const char *buf, size_t len) |
|
uint64_t | CityHash64WithSeed (const char *buf, size_t len, uint64_t seed) |
|
uint64_t | CityHash64WithSeeds (const char *buf, size_t len, uint64_t seed0, uint64_t seed1) |
|
uint128 | CityHash128 (const char *s, size_t len) |
|
uint128 | CityHash128WithSeed (const char *s, size_t len, uint128 seed) |
|
uint32 | CityHash32 (const char *buf, size_t len) |
|
static uint64_t | Hash128to64 (const uint128 x) |
|
functions for hashin strings, C translation of cityhash (C++, google)
- Author
- bdnt
- See also
- https://github.com/bdnt/cityhash-c
-
https://github.com/google/cityhash