nextPowerOfTwo

Undocumented in source. Be warned that the author may not have intended to support it.
uint
nextPowerOfTwo
(
uint value
)

Examples

assert(nextPowerOfTwo(1000) == 1024); 
assert(nextPowerOfTwo(1024) == 2048); 

Meta