Package com.jogamp.common.util
Class HashUtil
- java.lang.Object
-
- com.jogamp.common.util.HashUtil
-
public class HashUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description HashUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getAddrHash32_EqualDist(long addr)
Generates a 32bit equally distributed identity hash value fromaddr
avoiding XOR collision.static int
getAddrSizeHash32_EqualDist(long addr, long size)
Generates a 32bit equally distributed identity hash value fromaddr
andsize
avoiding XOR collision.static long
getHash64(long addr, long size)
Generates a 64bit equally distributed hash value fromaddr
andsize
avoiding XOR collisions.
-
-
-
Method Detail
-
getAddrHash32_EqualDist
public static int getAddrHash32_EqualDist(long addr)
Generates a 32bit equally distributed identity hash value fromaddr
avoiding XOR collision.
-
getAddrSizeHash32_EqualDist
public static int getAddrSizeHash32_EqualDist(long addr, long size)
Generates a 32bit equally distributed identity hash value fromaddr
andsize
avoiding XOR collision.
-
getHash64
public static long getHash64(long addr, long size)
Generates a 64bit equally distributed hash value fromaddr
andsize
avoiding XOR collisions.
-
-