Nebula
Toggle main menu visibility
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
//------------------------------------------------------------------------------
15
namespace
Util
16
{
17
18
//------------------------------------------------------------------------------
22
uint32_t
Hash
(
const
uint8_t* key,
SizeT
len, uint32_t seed = 4711);
23
24
25
//------------------------------------------------------------------------------
29
inline
uint32_t
30
HashCombineFast
(uint32_t hash1, uint32_t hash2)
31
{
32
return
hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2));
33
}
34
35
}
Util
A quad tree designed to return regions of free 2D space.
Definition
String.cs:6
Util::HashCombineFast
uint32_t HashCombineFast(uint32_t hash1, uint32_t hash2)
Hash combine function, based on boost::hash_combine.
Definition
hash.h:30
Util::Hash
uint32_t Hash(const uint8_t *key, SizeT len, uint32_t seed)
Hash based on murmurhash3.
Definition
hash.cc:14
types.h
SizeT
int SizeT
Definition
types.h:42
code
foundation
util
hash.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.