MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / hash_uint32

Function hash_uint32

include/daScript/misc/anyhash.h:78–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 static __forceinline uint64_t hash_uint32 ( uint32_t value ) { // this is simplified, and not the same as wyhash(&value,4)
79 auto h = _wymix(uint64_t(value), DAS_WYHASH_SEED);
80 return h <= HASH_KILLED64 ? UINT64_C(1099511628211) : h;
81 }
82
83 static __forceinline uint64_t hash_uint64 ( uint64_t value ) { // this is simplified, and not the same as wyhash(&value,4)
84 auto h = _wymix(value, DAS_WYHASH_SEED);

Callers 1

hash_functionFunction · 0.85

Calls 1

_wymixFunction · 0.85

Tested by

no test coverage detected