public class Shorts extends Object
Modifier and Type | Method and Description |
---|---|
static int |
bitCount(int x) |
static int |
bitCount(short x)
Count the number of set bits in a short;
|
static void |
clearBits(short[] dest,
int doff,
short[] src,
int soff,
int len) |
static long |
pack(short[] s,
int off) |
static void |
setBits(short[] dest,
int doff,
long src) |
static void |
setBits(short[] dest,
int doff,
short[] src,
int soff,
int len) |
static short[] |
split(long l) |
public static short[] split(long l)
public static long pack(short[] s, int off)
public static void setBits(short[] dest, int doff, long src)
public static void setBits(short[] dest, int doff, short[] src, int soff, int len)
public static void clearBits(short[] dest, int doff, short[] src, int soff, int len)
public static int bitCount(int x)
public static int bitCount(short x)
x
- the short to have its bits countedCopyright © 2015. All rights reserved.