List of all members.
Static Public Member Functions |
| static int | nextPowerOfTwo (int value) |
| | return the next largest number which is a power of two.
|
| static int | lastPowerOfTwo (int value) |
| | return the next smallest number which is a power of two.
|
| static double | log2 (double d) |
Static Package Attributes |
| static final double | base2 = 1.0 / Math.log(2.0) |
Member Function Documentation
| static int lastPowerOfTwo |
( |
int |
value | ) |
[static] |
If number is a power of two, the same number will be returned.
- Parameters:
-
- Returns:
| static double log2 |
( |
double |
d | ) |
[static] |
| static int nextPowerOfTwo |
( |
int |
value | ) |
[static] |
If number is a power of two, the same number will be returned.
- Parameters:
-
- Returns:
Member Data Documentation
final double base2 = 1.0 / Math.log(2.0) [static, package] |
The documentation for this class was generated from the following file: