Joshua
open source statistical hierarchical phrase-based machine translation system
|
Static Public Member Functions | |
static int | encodeAsInt (short high, short low) |
static short | decodeHighBits (int i) |
static short | decodeLowBits (int i) |
static long | encodeAsLong (int high, int low) |
static int | decodeHighBits (long l) |
static int | decodeLowBits (long l) |
Utility class for bit twiddling.
static short joshua.util.Bits.decodeHighBits | ( | int | i | ) | [static] |
Decodes the high 16 bits of an integer as a short.
i | Integer value to decode |
static int joshua.util.Bits.decodeHighBits | ( | long | l | ) | [static] |
Decodes the high 32 bits of a long as an integer.
l | Long value to decode |
static short joshua.util.Bits.decodeLowBits | ( | int | i | ) | [static] |
Decodes the low 16 bits of an integer as a short.
i | Integer value to decode |
static int joshua.util.Bits.decodeLowBits | ( | long | l | ) | [static] |
Decodes the low 32 bits of a long as an integer.
l | Long value to decode |
static int joshua.util.Bits.encodeAsInt | ( | short | high, |
short | low | ||
) | [static] |
Encodes two shorts in an int.
high | |
low |
static long joshua.util.Bits.encodeAsLong | ( | int | high, |
int | low | ||
) | [static] |
Encodes two integers in a long.
high | |
low |