Files
wizapp-stdlib/documents/hash_tables_refs.md
T
Abdelrahman Said aa48942d91
Release / release (push) Successful in 3s
Get most recent ankerl implementation
2026-08-31 23:34:56 +01:00

2.8 KiB

Hash Tables References

SwissTable

64-bit hash from 128-bit hash

MurmurHash3 and SipHash return 128 bits. SwissTable expects 64 bits. XOR folding is the approach to use:

uint64_t fold_128_to_64(uint128_t hash) {
    return (uint64_t)(hash >> 64) ^ (uint64_t)(hash & 0xFFFFFFFFFFFFFFFF);
}

Robin Hood

Robin Hood vs SwissTable

Double Hashing