nxt.hash_functions

Various hash functions, including integer ones.

Members

Functions

fibonacci_hash
size_t fibonacci_hash(hash_t hash)
Undocumented in source. Be warned that the author may not have intended to support it.
hashOfPolymorphic
hash_t hashOfPolymorphic(Class a)

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

hashOfTypeInfoPtr
hash_t hashOfTypeInfoPtr(TypeInfo_Class typeinfo)
Undocumented in source. Be warned that the author may not have intended to support it.
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