NCBI C++ ToolKit
Typedefs | Functions
city.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <utility>
+ 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.

Go to the SVN repository for 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 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)
 
uint32 CityHash32 (const char *buf, size_t len)
 
uint64 Hash128to64 (const uint128 &x)
 

Typedef Documentation

◆ uint128

typedef std::pair<uint64, uint64> uint128

Definition at line 72 of file city.h.

◆ uint32

typedef uint32_t uint32

Definition at line 70 of file city.h.

◆ uint64

typedef uint64_t uint64

Definition at line 71 of file city.h.

◆ uint8

typedef uint8_t uint8

Definition at line 69 of file city.h.

Function Documentation

◆ CityHash128()

uint128 CityHash128 ( const char *  s,
size_t  len 
)

◆ CityHash128WithSeed()

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

◆ CityHash32()

uint32 CityHash32 ( const char *  buf,
size_t  len 
)

◆ CityHash64()

uint64 CityHash64 ( const char *  buf,
size_t  len 
)

◆ CityHash64WithSeed()

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

◆ CityHash64WithSeeds()

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

◆ Hash128to64()

uint64 Hash128to64 ( const uint128 x)
inline

Definition at line 101 of file city.h.

References a, b, Uint128High64(), and Uint128Low64().

◆ Uint128High64()

uint64 Uint128High64 ( const uint128 x)
inline

Definition at line 75 of file city.h.

Referenced by util::Fingerprint(), Hash128to64(), and util::Hash128to64().

◆ Uint128Low64()

uint64 Uint128Low64 ( const uint128 x)
inline

Definition at line 74 of file city.h.

Referenced by util::Fingerprint(), Hash128to64(), and util::Hash128to64().

Modified on Tue Jul 23 17:50:13 2024 by modify_doxy.py rev. 669887