Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
city.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <utility>
#include <string>

Go to the source code of this file.

Typedefs

typedef uint8_t uint8
 
typedef uint32_t uint32
 
typedef uint64_t uint64
 
typedef std::pair< uint64, uint64uint128
 

Functions

uint64 Uint128Low64 (const uint128 &x)
 
uint64 Uint128High64 (const uint128 &x)
 
uint64 CityHash64 (const char *buf, size_t len)
 
uint64 CityHash64 (std::string str)
 
uint64 CityHash64WithSeed (const char *buf, size_t len, uint64 seed)
 
uint64 CityHash64WithSeeds (const char *buf, size_t len, uint64 seed0, uint64 seed1)
 
uint128 CityHash128 (const char *s, size_t len)
 
uint128 CityHash128WithSeed (const char *s, size_t len, uint128 seed)
 
uint64 Hash128to64 (const uint128 &x)
 

Typedef Documentation

typedef uint8_t uint8

Definition at line 51 of file city.h.

typedef uint32_t uint32

Definition at line 52 of file city.h.

typedef uint64_t uint64

Definition at line 53 of file city.h.

typedef std::pair<uint64, uint64> uint128

Definition at line 54 of file city.h.

Function Documentation

uint64 Uint128Low64 ( const uint128 x)
inline

Definition at line 56 of file city.h.

uint64 Uint128High64 ( const uint128 x)
inline

Definition at line 57 of file city.h.

uint64 CityHash64 ( const char *  buf,
size_t  len 
)
uint64 CityHash64 ( std::string  str)

Definition at line 238 of file city.cc.

uint64 CityHash64WithSeed ( const char *  buf,
size_t  len,
uint64  seed 
)

Definition at line 242 of file city.cc.

uint64 CityHash64WithSeeds ( const char *  buf,
size_t  len,
uint64  seed0,
uint64  seed1 
)

Definition at line 246 of file city.cc.

uint128 CityHash128 ( const char *  s,
size_t  len 
)

Definition at line 342 of file city.cc.

uint128 CityHash128WithSeed ( const char *  s,
size_t  len,
uint128  seed 
)

Definition at line 283 of file city.cc.

uint64 Hash128to64 ( const uint128 x)
inline

Definition at line 82 of file city.h.