29 uint32_t
murmurhash2(
const void *key,
size_t len, uint32_t seed) {
32 const uint32_t m = 0x5bd1e995;
36 uint32_t h = seed ^ len;
39 const unsigned char * data = (
const unsigned char *)key;
42 uint32_t k = *(uint32_t *)data;
57 case 3: h ^= data[2] << 16;
58 case 2: h ^= data[1] << 8;
MurmurHash2 digest routine.
uint32_t murmurhash2(const void *key, size_t len, uint32_t seed)
The murmurhash2 implementation.
Compatibility Macros for C/C++.