5047N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 5047N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5047N/A * This code is free software; you can redistribute it and/or modify it 5047N/A * under the terms of the GNU General Public License version 2 only, as 5047N/A * published by the Free Software Foundation. 5047N/A * This code is distributed in the hope that it will be useful, but WITHOUT 5047N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5047N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5047N/A * version 2 for more details (a copy is included in the LICENSE file that 5047N/A * You should have received a copy of the GNU General Public License version 5047N/A * 2 along with this work; if not, write to the Free Software Foundation, 5047N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5047N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5047N/A * or visit www.oracle.com if you need additional information or have any 5047N/A * @test @summary Ensure that Murmur3 hash performs according to specification. 5047N/A (
byte)
0x80, (
byte)
0x81, (
byte)
0x82};
5047N/A (
byte)
0x80, (
byte)
0x81, (
byte)
0x82, (
byte)
0x83};
5047N/A (
char)
0x8180, (
char)
0x8382};
5047N/A (
byte)
0x80, (
byte)
0x81, (
byte)
0x82,
5047N/A (
byte)
0x83, (
byte)
0x84, (
byte)
0x85};
5047N/A (
char)
0x8180, (
char)
0x8382, (
char)
0x8584};
5047N/A (
byte)
0x80, (
byte)
0x81, (
byte)
0x82,
5047N/A (
byte)
0x83, (
byte)
0x84, (
byte)
0x85,
5047N/A (
char)
0x8180, (
char)
0x8382,
5047N/A (
char)
0x8584, (
char)
0x8786};
5047N/A for (
int i =
0; i <
256; i++) {
5047N/A // Hash subranges {}, {0}, {0,1}, {0,1,2}, ..., {0,...,255} 5047N/A for (
int i =
0; i <
256; i++) {
5047N/A // hash to get final result.