|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.compression.BitUtilities
public class BitUtilities
Utility methods for use in the BitFile classes.
Field Summary | |
---|---|
static int[] |
MSB_BYTES
Array of output of mostSignficantBit(byte) for quicker lookups |
Constructor Summary | |
---|---|
BitUtilities()
|
Method Summary | |
---|---|
static int |
mostSignficantBit_Loop(int x)
Returns the most significant bit for any positive integer, 0 for -1. |
static int |
mostSignificantBit(byte x)
Returns the most significant bit for any byte value. |
static int |
mostSignificantBit(int x)
Returns the most significant bit for any positive integer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int[] MSB_BYTES
Constructor Detail |
---|
public BitUtilities()
Method Detail |
---|
public static int mostSignficantBit_Loop(int x)
public static int mostSignificantBit(int x)
public static int mostSignificantBit(byte x)
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |