Nebula
Loading...
Searching...
No Matches
hash.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11
12#include "core/types.h"
13
14//------------------------------------------------------------------------------
15namespace Util
16{
17
18//------------------------------------------------------------------------------
22uint32_t Hash(const uint8_t* key, SizeT len, uint32_t seed = 4711);
23
24
25//------------------------------------------------------------------------------
29inline uint32_t
30HashCombineFast(uint32_t hash1, uint32_t hash2)
31{
32 return hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2));
33}
34
35}
A quad tree designed to return regions of free 2D space.
Definition String.cs:6
uint32_t HashCombineFast(uint32_t hash1, uint32_t hash2)
Hash combine function, based on boost::hash_combine.
Definition hash.h:30
uint32_t Hash(const uint8_t *key, SizeT len, uint32_t seed)
Hash based on murmurhash3.
Definition hash.cc:14
int SizeT
Definition types.h:42