ceilPowerOfTwo
ceilPowerOfTwo(v) ⇒ number
Returns next nearest power of two based on the input. If input is already power of two - result will be the same as input.
Kind: global function
See: http://developer.classpath.org/doc/java/lang/Integer-source.html
Param | Type |
---|---|
v | number |
Example
2 -> 2
Example
7 -> 8
Example
10 -> 16