public class Num
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version
Version, history and license.
|
Constructor and Description |
---|
Num() |
Modifier and Type | Method and Description |
---|---|
static short |
shBits16From(short src,
int bitPos,
int nrofBits) |
static short |
shBits16To(short src,
int bitPos,
int nrofBits) |
static int |
shBits32From(int src,
int bitPos,
int nrofBits) |
static int |
shBits32To(int src,
int bitPos,
int nrofBits) |
static long |
shBits64From(long src,
int bitPos,
int nrofBits) |
static long |
shBits64To(long src,
int bitPos,
int nrofBits) |
static short |
shMask16From(short src,
int bitPos,
int mask) |
static short |
shMask16To(short src,
int bitPos,
int mask) |
static int |
shMask32From(int src,
int bitPos,
int mask)
Shift the src from bitPos and mask after them.
|
static int |
shMask32To(int src,
int bitPos,
int mask)
Shift the src to bitPos and mask after them.
|
static long |
shMask64From(long src,
int bitPos,
int mask) |
static long |
shMask64To(long src,
int bitPos,
int mask) |
public static final java.lang.String version
public static int shBits32To(int src, int bitPos, int nrofBits)
public static int shBits32From(int src, int bitPos, int nrofBits)
public static long shBits64To(long src, int bitPos, int nrofBits)
public static long shBits64From(long src, int bitPos, int nrofBits)
public static short shBits16To(short src, int bitPos, int nrofBits)
public static short shBits16From(short src, int bitPos, int nrofBits)
public static int shMask32To(int src, int bitPos, int mask)
src
- any number usual 0...nbitPos
- positive: shift left.mask
- regarded to the return value bitPospublic static int shMask32From(int src, int bitPos, int mask)
src
- any bit combinationbitPos
- positive: shift right.mask
- regarded to the return value bitPospublic static long shMask64To(long src, int bitPos, int mask)
public static long shMask64From(long src, int bitPos, int mask)
public static short shMask16To(short src, int bitPos, int mask)
public static short shMask16From(short src, int bitPos, int mask)