Commits

Atte Kojo committed 42c8f55

Removed check for leftover bytes in Murmurhash2.
This can be done because string length in OCaml is always a multiple of 4.

Comments (0)

Files changed (1)

memcached_native.c

         len -= 4;
     }
 
-    // Handle the last few bytes of the input array
-    switch (len) {
-    case 3: h ^= data[2] << 16;
-    case 2: h ^= data[1] << 8;
-    case 1: h ^= data[0];
-            h *= m;
-    }
-
     // Do a few final mixes of the hash to ensure the last few
     // bytes are well-incorporated.
     h ^= h >> 13;