27 #ifndef INCLUDED_FNV_HASH
28 #define INCLUDED_FNV_HASH
45 extern u32 fnv_hash(
const void* buf,
size_t len = 0);
55 #endif // #ifndef INCLUDED_FNV_HASH
u64 fnv_hash64(const void *buf, size_t len)
64-bit version of fnv_hash.
u32 fnv_hash(const void *buf, size_t len)
rationale: this algorithm was chosen because it delivers 'good' results for string data and is relati...
u32 fnv_lc_hash(const char *str, size_t len)
special version of fnv_hash for strings: first converts to lowercase (useful for comparing mixed-case...