MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / hash_append

Function hash_append

modules/engine/runtime/include/SkrRT/ecs/hash.hpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 constexpr size_t _FNV_prime = sizeof(uint32_t) ? 16777619U : 1099511628211ULL;
12#endif
13 inline size_t hash_append(size_t val, size_t data)
14 {
15 val ^= data;
16 val *= _FNV_prime;
17 return val;
18 }
19
20 inline size_t hash_append(size_t val, const unsigned char* const data, const size_t length) noexcept
21 { // accumulate range [data, data + length) into partial FNV-1a uuid val

Callers 2

hash_bytesFunction · 0.85
hashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected