LLVM 23.0.0git
KCFIHash.cpp File Reference

Go to the source code of this file.

Functions

static uint64_t rotl64 (uint64_t X, size_t R)
static uint64_t round (uint64_t Acc, uint64_t Input)
static uint64_t mergeRound (uint64_t Acc, uint64_t Val)
static uint64_t avalanche (uint64_t H)
static uint64_t xxHash64 (const uint8_t *P, size_t Len)

Variables

constexpr uint64_t PRIME64_1 = 11400714785074694791ULL
constexpr uint64_t PRIME64_2 = 14029467366897019727ULL
constexpr uint64_t PRIME64_3 = 1609587929392839161ULL
constexpr uint64_t PRIME64_4 = 9650029242287828579ULL
constexpr uint64_t PRIME64_5 = 2870177450012600261ULL

Function Documentation

◆ avalanche()

uint64_t avalanche ( uint64_t H)
static

Definition at line 43 of file KCFIHash.cpp.

References H, PRIME64_2, and PRIME64_3.

Referenced by xxHash64().

◆ mergeRound()

uint64_t mergeRound ( uint64_t Acc,
uint64_t Val )
static

Definition at line 36 of file KCFIHash.cpp.

References PRIME64_1, PRIME64_4, and round().

Referenced by xxHash64().

◆ rotl64()

uint64_t rotl64 ( uint64_t X,
size_t R )
static

Definition at line 19 of file KCFIHash.cpp.

References X.

Referenced by round(), and xxHash64().

◆ round()

◆ xxHash64()

Variable Documentation

◆ PRIME64_1

uint64_t PRIME64_1 = 11400714785074694791ULL
constexpr

Definition at line 23 of file KCFIHash.cpp.

◆ PRIME64_2

uint64_t PRIME64_2 = 14029467366897019727ULL
constexpr

Definition at line 24 of file KCFIHash.cpp.

◆ PRIME64_3

uint64_t PRIME64_3 = 1609587929392839161ULL
constexpr

Definition at line 25 of file KCFIHash.cpp.

◆ PRIME64_4

uint64_t PRIME64_4 = 9650029242287828579ULL
constexpr

Definition at line 26 of file KCFIHash.cpp.

◆ PRIME64_5

uint64_t PRIME64_5 = 2870177450012600261ULL
constexpr

Definition at line 27 of file KCFIHash.cpp.