메소드 | 설명 | |
---|---|---|
IsPowerOf2 ( int x ) : bool |
Checks if the specified integer is power of 2.
|
|
Log2 ( int x ) : int |
Get base of binary logarithm.
|
|
Pow2 ( int power ) : int |
Calculates power of 2.
|
public static IsPowerOf2 ( int x ) : bool | ||
x | int | Integer number to check. |
리턴 | bool |