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 u32 fnv_hash(const void *buf, size_t len=0)
rationale: this algorithm was chosen because it delivers 'good' results for string data and is relati...
Definition: fnv_hash.cpp:33
u64 fnv_hash64(const void *buf, size_t len=0)
64-bit version of fnv_hash.
Definition: fnv_hash.cpp:69
uint64_t u64
Definition: types.h:40
uint32_t u32
Definition: types.h:39
u32 fnv_lc_hash(const char *str, size_t len=0)
special version of fnv_hash for strings: first converts to lowercase (useful for comparing mixed-case...
Definition: fnv_hash.cpp:105