#include <bit>
#include <cassert>
#include <cstdint>
#include <cstring>
#include <string_view>
Go to the source code of this file.
|
template<bool ALIGNED> |
uint32_t | read32 (const uint8_t *ptr) |
|
template<bool ALIGNED, uint8_t MASK8 = 0xFF, uint32_t SEED = 0> |
uint32_t | xxhash_impl (const uint8_t *p, size_t size) |
|
template<uint8_t MASK8> |
uint32_t | xxhash_impl (std::string_view key) |
|
uint32_t | xxhash (std::string_view key) |
|
uint32_t | xxhash_case (std::string_view key) |
|
◆ read32()
template<bool ALIGNED>
uint32_t read32 |
( |
const uint8_t * |
ptr | ) |
|
|
inline |
◆ xxhash()
uint32_t xxhash |
( |
std::string_view |
key | ) |
|
|
inline |
◆ xxhash_case()
uint32_t xxhash_case |
( |
std::string_view |
key | ) |
|
|
inline |
◆ xxhash_impl() [1/2]
template<bool ALIGNED, uint8_t MASK8 = 0xFF, uint32_t SEED = 0>
uint32_t xxhash_impl |
( |
const uint8_t * |
p, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ xxhash_impl() [2/2]
template<uint8_t MASK8>
uint32_t xxhash_impl |
( |
std::string_view |
key | ) |
|
|
inline |
◆ PRIME32_1
constexpr uint32_t PRIME32_1 = 2654435761 |
|
inlineconstexpr |
◆ PRIME32_2
constexpr uint32_t PRIME32_2 = 2246822519 |
|
inlineconstexpr |
◆ PRIME32_3
constexpr uint32_t PRIME32_3 = 3266489917 |
|
inlineconstexpr |
◆ PRIME32_4
constexpr uint32_t PRIME32_4 = 668265263 |
|
inlineconstexpr |
◆ PRIME32_5
constexpr uint32_t PRIME32_5 = 374761393 |
|
inlineconstexpr |