public final class JPRAMasks extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
createOneMask(int size,
int lsb,
int msb)
Create a mask of
size bits, where the bits from the inclusive range
[lsb, msb] are set to 0 and the rest are set to 1. |
static String |
createZeroMask(int size,
int lsb,
int msb)
Create a mask of
size bits, where the bits from the inclusive range
[lsb, msb] are set to 0 and the rest are set to 1. |
public static String createZeroMask(int size, int lsb, int msb)
size bits, where the bits from the inclusive range
[lsb, msb] are set to 0 and the rest are set to 1.size - The mask sizelsb - The least significant bit indexmsb - The most significant bit indexpublic static String createOneMask(int size, int lsb, int msb)
size bits, where the bits from the inclusive range
[lsb, msb] are set to 0 and the rest are set to 1.size - The mask sizelsb - The least significant bit indexmsb - The most significant bit indexCopyright © 2015 <code@io7m.com> http://io7m.com