UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CityHash.cpp File Reference
#include "Hash/CityHash.h"
#include "HAL/UnrealMemory.h"
#include <Misc/ByteSwap.h>

Namespaces

namespace  CityHash_Internal
 

Macros

#define bswap_32(x)   BYTESWAP_ORDER32(x)
 
#define bswap_64(x)   BYTESWAP_ORDER64(x)
 
#define uint32_in_expected_order(x)   (x)
 
#define uint64_in_expected_order(x)   (x)
 
#define LIKELY(x)   (x)
 
#define PERMUTE3(a, b, c)   do { SwapValues(a, b); SwapValues(a, c); } while (0)
 

Functions

template<typename T >
void SwapValues (T &a, T &b)
 
uint32 CityHash32 (const char *s, uint32 len)
 
uint64 CityHash64 (const char *s, uint32 len)
 
uint64 CityHash64WithSeed (const char *s, uint32 len, uint64 seed)
 
uint64 CityHash64WithSeeds (const char *s, uint32 len, uint64 seed0, uint64 seed1)
 

Macro Definition Documentation

◆ bswap_32

#define bswap_32 (   x)    BYTESWAP_ORDER32(x)

◆ bswap_64

#define bswap_64 (   x)    BYTESWAP_ORDER64(x)

◆ LIKELY

#define LIKELY (   x)    (x)

◆ PERMUTE3

#define PERMUTE3 (   a,
  b,
 
)    do { SwapValues(a, b); SwapValues(a, c); } while (0)

◆ uint32_in_expected_order

#define uint32_in_expected_order (   x)    (x)

◆ uint64_in_expected_order

#define uint64_in_expected_order (   x)    (x)

Function Documentation

◆ CityHash32()

uint32 CityHash32 ( const char s,
uint32  len 
)

◆ CityHash64()

uint64 CityHash64 ( const char s,
uint32  len 
)

◆ CityHash64WithSeed()

uint64 CityHash64WithSeed ( const char s,
uint32  len,
uint64  seed 
)

◆ CityHash64WithSeeds()

uint64 CityHash64WithSeeds ( const char s,
uint32  len,
uint64  seed0,
uint64  seed1 
)

◆ SwapValues()

template<typename T >
void SwapValues ( T &  a,
T &  b 
)