Class HashUtil


  • public class HashUtil
    extends Object
    • Constructor Detail

      • HashUtil

        public HashUtil()
    • Method Detail

      • getAddrHash32_EqualDist

        public static int getAddrHash32_EqualDist​(long addr)
        Generates a 32bit equally distributed identity hash value from addr avoiding XOR collision.
      • getAddrSizeHash32_EqualDist

        public static int getAddrSizeHash32_EqualDist​(long addr,
                                                      long size)
        Generates a 32bit equally distributed identity hash value from addr and size avoiding XOR collision.
      • getHash64

        public static long getHash64​(long addr,
                                     long size)
        Generates a 64bit equally distributed hash value from addr and size avoiding XOR collisions.