Here you can find the source of longToInts(long n)
public static int[] longToInts(long n)
//package com.java2s; public class Main { public static int[] longToInts(long n) { return longToInts(n, new int[2], 0); }//from w w w .j a v a 2 s .co m public static int[] longToInts(long n, int[] arr, int off) { for (int i = 0; i < arr.length; i++) { arr[i + off] = (int) (n >> 32 * i & 0xFFFFFFFF); } return arr; } }