Harlinn.Windows 0.1
Loading...
Searching...
No Matches
xxhash::hash< 32 > Class Reference

xxHash32 More...

#include <xxhash_cx.h>

Collaboration diagram for xxhash::hash< 32 >:
[legend]

Public Types

using hash_type = std::uint32_t
 xxHash32 data.
 
using long_type = std::uint64_t
 

Static Public Member Functions

static constexpr hash_type xxh (const char *input, std::size_t len, hash_type seed)
 xxHash32.
 

Static Private Member Functions

static constexpr hash_type prime (int i)
 
static constexpr hash_type round (hash_type acc, hash_type input)
 
static constexpr hash_type convergence (hash_type acc0, hash_type acc1, hash_type acc2, hash_type acc3)
 
static constexpr hash_type final_mix (hash_type acc)
 

Static Private Attributes

static constexpr std::array< hash_type, 5 > primes
 

Detailed Description

xxHash32

Member Typedef Documentation

◆ hash_type

using xxhash::hash< 32 >::hash_type = std::uint32_t

xxHash32 data.

◆ long_type

using xxhash::hash< 32 >::long_type = std::uint64_t

Member Function Documentation

◆ convergence()

static constexpr hash_type xxhash::hash< 32 >::convergence ( hash_type acc0,
hash_type acc1,
hash_type acc2,
hash_type acc3 )
inlinestaticconstexprprivate

◆ final_mix()

static constexpr hash_type xxhash::hash< 32 >::final_mix ( hash_type acc)
inlinestaticconstexprprivate

◆ prime()

static constexpr hash_type xxhash::hash< 32 >::prime ( int i)
inlinestaticconstexprprivate

◆ round()

static constexpr hash_type xxhash::hash< 32 >::round ( hash_type acc,
hash_type input )
inlinestaticconstexprprivate

◆ xxh()

static constexpr hash_type xxhash::hash< 32 >::xxh ( const char * input,
std::size_t len,
hash_type seed )
inlinestaticconstexpr

xxHash32.

Parameters
bufdata.
lendata length(byte).
seedseed.
Returns
xxHash32

Member Data Documentation

◆ primes

std::array<hash_type, 5> xxhash::hash< 32 >::primes
staticconstexprprivate
Initial value:
{ {
2654435761U, 2246822519U, 3266489917U, 668265263U, 374761393U
} }

The documentation for this class was generated from the following file: