39 const u8* p = (
const u8*)buf;
52 size_t bytes_left = len;
53 while(bytes_left != 0)
71 u64 h = 0xCBF29CE484222325ull;
75 const u8* p = (
const u8*)buf;
83 h *= 0x100000001B3ull;
88 size_t bytes_left = len;
89 while(bytes_left != 0)
92 h *= 0x100000001B3ull;
116 h ^= tolower(*str++);
122 size_t bytes_left = len;
123 while(bytes_left != 0)
125 h ^= tolower(*str++);
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...