Here you can find the source of int64toInt32(long key)
public static int int64toInt32(long key)
//package com.java2s; // it under the terms of the GNU Lesser General Public License as published by public class Main { /**//from ww w. j av a2 s . c om * Hashes a long to an int */ public static int int64toInt32(long key) { key = (~key) + (key << 18); key = key ^ (key >>> 31); key = key * 21; key = key ^ (key >>> 11); key = key + (key << 6); key = key ^ (key >>> 22); return (int) key; } }