Skip to content

Hash Functions (primarily for hashmap/sets)

include/math/hash.h View source View on GitHub
uint32_t hash_djb2(const void *key, size_t len);
uint32_t hash_sdbm(const void *key, size_t len);
uint32_t hash_fnv1a(const void *key, size_t len);
uint32_t hash_jenkins_one_at_a_time(const void *key, size_t len);
uint32_t hash_murmur3_32(const void *key, size_t len, uint32_t seed);
uint32_t hash_elf(const void *key, size_t len);
uint32_t hash_bkdr(const void *key, size_t len);