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 int
abs
(int a_) static long
abs
(long a_) static long
combineInts
(int lowInt, int highInt) static int
getHighInt
(long key) static int
getLowInt
(long key) static long
getLowLong
(long key) static void
static long
max
(long a_, long b) static long
min
(long a_, long b) static long
setHighInt
(long key, int i) static long
setLowInt
(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
-