public static int murmurHash ( int code ) { code *= 0xcc9e2d51 ; code = Integer . rotateLeft ( code , 15 ) ; code *= 0x1b873593 ; code = Integer . rotateLeft ( code , 13 ) ; code = code * 5 + 0xe6546b64 ; code ^= 4 ; code = bitMix ( code ) ; if ( code >= 0 ) { return code ; } else if ( code != Integer . MIN_VALUE ) { return - code ; } else { return 0 ; } }
This function hashes an integer value .