Package edu.berkeley.nlp.lm.bits
Class BitUtils
java.lang.Object
edu.berkeley.nlp.lm.bits.BitUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intabs(int a_) static longabs(long a_) static longcombineInts(int lowInt, int highInt) static intgetHighInt(long key) static intgetLowInt(long key) static longgetLowLong(long key) static voidstatic longmax(long a_, long b) static longmin(long a_, long b) static longsetHighInt(long key, int i) static longsetLowInt(long key, int i)
-
Constructor Details
-
BitUtils
public BitUtils()
-
-
Method Details
-
getHighInt
public static int getHighInt(long key) -
abs
public static int abs(int a_) -
abs
public static long abs(long a_) -
getLowInt
public static int getLowInt(long key) -
getLowLong
public static long getLowLong(long key) -
setLowInt
public static long setLowInt(long key, int i) -
setHighInt
public static long setHighInt(long key, int i) -
max
public static long max(long a_, long b) -
min
public static long min(long a_, long b) -
combineInts
public static long combineInts(int lowInt, int highInt) -
main
-