FastqPuri
Classes | Macros | Typedefs | Functions
city.h File Reference

functions for hashin strings, C translation of cityhash (C++, google) More...

#include <stdlib.h>
#include <stdint.h>
Include dependency graph for city.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _uint128
 

Macros

#define Uint128Low64(x)   (x).first
 
#define Uint128High64(x)   (x).second
 

Typedefs

typedef uint8_t uint8
 
typedef uint16_t uint16
 
typedef uint32_t uint32
 
typedef uint64_t uint64
 
typedef struct _uint128 uint128
 

Functions

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)
 

Detailed Description

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