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(T x)

Dummy-hash for benchmarking performance of HashSet.

muellerHash32
uint muellerHash32(uint x)

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

muellerHash64
ulong muellerHash64(T 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