MySQL 9.5.0
Source Code Documentation
hash.h File Reference
#include <cstdint>
#include <string>

Go to the source code of this file.

Functions

uint64_t HashCString (const char *str)
 
uint64_t HashString (std::string_view str)
 
template<typename T >
uint64_t HashNumber (T num)
 
uint64_t CombineNonCommutativeSigs (uint64_t h1, uint64_t h2)
 Non-commutative hash combination NULL hashes (i.e. More...
 
uint64_t CombineCommutativeSigs (uint64_t h1, uint64_t h2)
 Commutative hash combination NULL hashes (i.e. More...
 

Variables

constexpr uint64_t kNullStrHash
 

Function Documentation

◆ CombineCommutativeSigs()

uint64_t CombineCommutativeSigs ( uint64_t  h1,
uint64_t  h2 
)

Commutative hash combination NULL hashes (i.e.

hash value of zero) do not propagate, meaning that the combination of a non-zero hash and a zero hash will yield a non-zero hash.

◆ CombineNonCommutativeSigs()

uint64_t CombineNonCommutativeSigs ( uint64_t  h1,
uint64_t  h2 
)

Non-commutative hash combination NULL hashes (i.e.

hash value of zero) do not propagate, meaning that the combination of a non-zero hash and a zero hash will yield a non-zero hash.

◆ HashCString()

uint64_t HashCString ( const char *  str)

◆ HashNumber()

template<typename T >
uint64_t HashNumber ( T  num)

◆ HashString()

uint64_t HashString ( std::string_view  str)

Variable Documentation

◆ kNullStrHash

constexpr uint64_t kNullStrHash
inlineconstexpr
Initial value:
=
3424785146145211351ULL