24 #ifndef __DDD_MISC_HASHFUNC_HH
25 #define __DDD_MISC_HASHFUNC_HH
57 a = (a ^ 61) ^ (a >> 16);
77 return (key >> 3) * 2654435761U;
size_t wang32_hash(size_t key)
Thomas Wang's 32 bit hash function.
Definition: hashfunc.hh:42
uint32_t int32_hash(uint32_t a)
Another of Wang's fast hash with a magic number.
Definition: hashfunc.hh:56
size_t knuth32_hash(size_t key)
Knuth's Multiplicative hash function.
Definition: hashfunc.hh:73
Definition: hashfunc.hh:32