#include <HashTrait.h>
166 #if 0 // Really slow under gcc
168 static const G3D::uint128 FNV_PRIME_128(1 << 24, 0x159);
169 static const G3D::uint128 FNV_OFFSET_128(0xCF470AAC6CB293D2ULL, 0xF52F88BF32307F8FULL);
173 for (
int i = 0; i < 16; ++i) {
174 hash *= FNV_PRIME_128;
175 hash ^= (mask & key);
180 return static_cast<size_t>((foldedHash >> 32) ^ (foldedHash & 0xFFFFFFFF));
#define hash
Definition: private_namespace.h:186
G3D::uint64 hi
Definition: uint128.h:23
uint32_t superFastHash(const void *_data, size_t numBytes)
A hash function that is faster than CRC32 for arbitrary long strings http://www.azillionmonkeys.com/qed/hash.html by Paul Hsieh.
Definition: HashTrait.h:35
uint64_t uint64
Definition: g3dmath.h:170
G3D::uint64 lo
Definition: uint128.h:24
The documentation for this struct was generated from the following file: