5 //-----------------------------------------------------------------------------
6 // MurmurHashNeutral2, by Austin Appleby
8 // Same as MurmurHash2, but endian- and alignment-neutral.
9 uint32_t hash_murmur2(const void * key, int len)
11 const unsigned int seed = 0xdeadc0de;
12 const unsigned int m = 0x5bd1e995;
15 unsigned int h = seed ^ len;
17 const unsigned char * data = (const unsigned char *)key;
41 case 3: h ^= data[2] << 16;
42 case 2: h ^= data[1] << 8;