37 public static int hash(
final int prime,
final byte a[]) {
42 for (
int i=0; i<a.length; i++) {
48 public static int hash(
final int prime,
final int a,
final int b) {
49 final int h = prime + a;
56 public static int hash31(
final int a,
final int b) {
58 final int hash = 31 + a;
66 public static int hash31(
final long addr) {
69 final int hash = 31 + (int) addr;
70 return ((
hash << 5) -
hash) + (
int) ( addr >>> 32 ) ;
77 public static int hash31(
final long addr,
final long size) {
80 int hash = 31 + (int) addr ;
83 return ((
hash << 5) -
hash) + (
int) ( size >>> 32 ) ;
static int hash31(final long addr, final long size)
Generates a 32bit equally distributed identity hash value from addr and size avoiding XOR collision u...
static int hash31(final long addr)
Generates a 32bit equally distributed identity hash value from addr avoiding XOR collision using prim...
static int hash(final int prime, final byte a[])
static int hash31(final int a, final int b)
Generates a 32bit equally distributed hash value using prime 31.
static int hash(final int prime, final int a, final int b)