ChibiHash: Small, Fast 64 bit hash function
16 Nov 2024
If you need a small and fast 64 bit hash function that can be copy-pasted
easily, then here's one that I cooked up in an hour or so: chibihash64.h.
Some key features:
Small: ~60 loc in C
Fast: See benchmark table below
Portable: Doesn't use hardware specific instructions (e.g SSE)
Good Quality: Passes smhasher, so should be good quality (I think)
Unencumbered: Released into the public domain
Free of undefined behavior and gives same result regardless of host system's endianness.
Non-...
Read more at nrk.neocities.org