|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.util.Bits
public class Bits
Utilities for manipulating values at the bit-level.
Constructor Summary | |
---|---|
Bits()
|
Method Summary | |
---|---|
static boolean |
fits(Address val,
int bits)
Does an address literal val fit in bits bits? |
static boolean |
fits(int val,
int bits)
Does an int literal val fit in bits bits? |
static boolean |
fits(long val,
int bits)
Does a long literal val fit in bits bits? |
static boolean |
fits(Offset val,
int bits)
Does an offset literal val fit in bits bits? |
static int |
lower16(int value)
Return the lower 16 bits (as an int) of an int |
static int |
lower32(long value)
Return the lower 32 bits (as an int) of a long |
static int |
lower8(int value)
Return the lower 8 bits (as an int) of an int |
static int |
PPCMaskLower16(int value)
Return the lower 16 bits to be used in a PPC immediate field |
static int |
PPCMaskLower16(Offset value)
Return the lower 16 bits to be used in a PPC immediate field |
static int |
PPCMaskUpper16(int value)
Return the upper 16 bits to be used in a PPC immediate field |
static int |
PPCMaskUpper16(Offset value)
Return the upper 16 bits to be used in a PPC immediate field, make sure fits in 32 bits |
static int |
upper16(int value)
Return the upper 16 bits (as an int) of an int |
static int |
upper24(int value)
Return the upper 24 bits (as an int) of an int |
static int |
upper32(long value)
Return the upper 32 bits (as an int) of a long |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bits()
Method Detail |
---|
public static int PPCMaskLower16(int value)
public static int PPCMaskLower16(Offset value)
public static int PPCMaskUpper16(int value)
public static int PPCMaskUpper16(Offset value)
public static int lower8(int value)
public static int lower16(int value)
public static int upper16(int value)
public static int upper24(int value)
public static int lower32(long value)
public static int upper32(long value)
public static boolean fits(long val, int bits)
public static boolean fits(Offset val, int bits)
public static boolean fits(Address val, int bits)
public static boolean fits(int val, int bits)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |