Java Number Unpack unpack64(long num)

Here you can find the source of unpack64(long num)

Description

Reversed the pack64() function

License

Open Source License

Declaration

public static int[] unpack64(long num) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU Lesser General Public License as published by

public class Main {
    /**/*  w  w  w. j  a  v a2 s  . c  o m*/
     * Reversed the pack64() function
     */
    public static int[] unpack64(long num) {
        int a = (int) (num >>> 32);
        int b = (int) num;

        return new int[] { a, b };
    }
}

Related

  1. unpackDigital(int packed)
  2. unpackInt(final int argb, final int type)
  3. unpackInt(int packedInt, int numBits, int numShiftedLeft)
  4. unpackInt(long theLong, boolean isFirst)