openMSX
Classes | Functions | Variables
xxhash.hh File Reference
#include "likely.hh"
#include "build-info.hh"
#include <cstdint>
#include <cstring>
#include <string_view>
Include dependency graph for xxhash.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XXHasher
 
struct  XXHasher_IgnoreCase
 

Functions

uint32_t xxhash (std::string_view key)
 
uint32_t xxhash_case (std::string_view key)
 

Variables

constexpr uint32_t PRIME32_1 = 2654435761
 
constexpr uint32_t PRIME32_2 = 2246822519
 
constexpr uint32_t PRIME32_3 = 3266489917
 
constexpr uint32_t PRIME32_4 = 668265263
 
constexpr uint32_t PRIME32_5 = 374761393
 

Function Documentation

◆ xxhash()

uint32_t xxhash ( std::string_view  key)
inline

Definition at line 143 of file xxhash.hh.

Referenced by XXHasher::operator()(), and openmsx::XXTclHasher::operator()().

◆ xxhash_case()

uint32_t xxhash_case ( std::string_view  key)
inline

Definition at line 147 of file xxhash.hh.

Referenced by XXHasher_IgnoreCase::operator()().

Variable Documentation

◆ PRIME32_1

constexpr uint32_t PRIME32_1 = 2654435761

Definition at line 51 of file xxhash.hh.

◆ PRIME32_2

constexpr uint32_t PRIME32_2 = 2246822519

Definition at line 52 of file xxhash.hh.

◆ PRIME32_3

constexpr uint32_t PRIME32_3 = 3266489917

Definition at line 53 of file xxhash.hh.

◆ PRIME32_4

constexpr uint32_t PRIME32_4 = 668265263

Definition at line 54 of file xxhash.hh.

◆ PRIME32_5

constexpr uint32_t PRIME32_5 = 374761393

Definition at line 55 of file xxhash.hh.