Java Hash Calculate hash1(int val)

Here you can find the source of hash1(int val)

Description

hash

License

Open Source License

Declaration

public static int hash1(int val) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int hash1(int val) {
        val = (val + 0x7ed55d16) + (val << 12);
        val = (val ^ 0xc761c23c) ^ (val >> 19);
        val = (val + 0x165667b1) + (val << 5);
        val = (val + 0xd3a2646c) ^ (val << 9);
        val = (val + 0xfd7046c5) + (val << 3);
        val = (val ^ 0xb55a4f09) ^ (val >> 16);
        return val;
    }//from   ww w. j  a  v  a2 s  .c  om
}

Related

  1. hash(Object... value)
  2. hash(Object... values)
  3. hash(Object[] array)
  4. hash(Object[] array)
  5. hash(Object[] state)
  6. hash1(Object a)
  7. hash16(int hash)
  8. hash3(int hash, Object x, Object y, Object z)
  9. Hash32(byte[] v, int iStart, int iLength)