nxt.hash_functions

Various hash functions, including integer ones.

Members

Functions

hashOfPolymorphic
hash_t hashOfPolymorphic(Class a)

Hash that incorporates the hash of typeid bit-xored with hashOf(a).

identityHash64Of
ulong identityHash64Of(ulong x)

Dummy-hash for benchmarking performance of HashSet.

lemireHash64
ulong lemireHash64(double x)

Inspired by lemire's strongly universal hashing.

lemireHash64
ulong lemireHash64(ulong x)

Inspired by lemire's strongly universal hashing.

muellerHash32
uint muellerHash32(uint x)

Mueller integer hash function (bit mixer) A (32-bit).

muellerHash64
ulong muellerHash64(ulong x)

Mueller integer hash function (bit mixer) A (64-bit).

typeidHashOf
size_t typeidHashOf(T x)
wangMixHash64
ulong wangMixHash64(ulong x)

Thomas Wang 64-bit mix integer hash function.

Meta