MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
hash.h File Reference
#include <cstddef>
#include <cstdint>
#include <type_traits>
Include dependency graph for hash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mim::FNV1< size_t >
 
struct  mim::FNV1< 4 >
 
struct  mim::FNV1< 8 >
 

Namespaces

namespace  mim
 

Functions

Simple Hash

See Wikipedia.

constexpr uint32_t mim::murmur3 (uint32_t h) noexcept
 
constexpr uint64_t mim::splitmix64 (uint64_t h) noexcept
 
constexpr size_t mim::hash (size_t h) noexcept
 
FNV-1 Hash

See Wikipedia.

template<class T>
constexpr size_t mim::hash_combine (size_t seed, T v) noexcept
 
consteval size_t mim::hash_begin () noexcept
 
template<class T>
constexpr size_t mim::hash_begin (T val) noexcept
 

Class Documentation

◆ mim::FNV1

struct mim::FNV1
template<size_t>
struct mim::FNV1< size_t >

Magic numbers for FNV-1 hash.

Definition at line 46 of file hash.h.

Inheritance diagram for mim::FNV1< size_t >:
[legend]