Function nextPowerOfTwo
Round to next power of 2
T nextPowerOfTwo(T)
(
T k
) nothrow;
Example
assert(nextPowerOfTwo(0) == 1);
assert(nextPowerOfTwo(5) == 8);
Round to next power of 2
T nextPowerOfTwo(T)
(
T k
) nothrow;
assert(nextPowerOfTwo(0) == 1);
assert(nextPowerOfTwo(5) == 8);