Murmur3_x86_32 { public int hashLong(long input) { int low = (int) input; int high = (int) (input >>> 32); int k1 = mixK1(low); int h1 = mixH1(seed, k1); k1 = mixK1(high); h1 = mixH1(h1, k1); return fmix(h1, 8); } Murmur3_x86_32(int seed); @Override String toString(); int hashInt(int input); int hashLong(long input);  }
@Test public void testKnownLongInputs() { Assert.assertEquals(1669671676, hasher.hashLong(0L)); Assert.assertEquals(-846261623, hasher.hashLong(-42L)); Assert.assertEquals(1871679806, hasher.hashLong(42L)); Assert.assertEquals(1366273829, hasher.hashLong(Long.MIN_VALUE)); Assert.assertEquals(-2106506049, hasher.hashLong(Long.MAX_VALUE)); }