|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.backend.util.Misc
Miscellaneous functions
コンストラクタの概要 | |
Misc()
|
メソッドの概要 | |
static int |
binlog(int pattern)
Return rightmost 1's position |
static int |
binlog(long pattern)
Return binary logarithm. |
static int |
clp2(int x)
Round up to next powers of 2. |
static int |
count1s(int x)
Return number of 1's in x. |
static boolean |
powersOf2(long x)
Return true if x is powers of 2. |
static void |
sort(int[] a,
int n)
Sort integer vector in ascending order. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public Misc()
メソッドの詳細 |
public static void sort(int[] a, int n)
public static int clp2(int x)
x
- number to be rounded up.
public static boolean powersOf2(long x)
public static int binlog(long pattern)
public static int binlog(int pattern)
public static int count1s(int x)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |