nextPow2

From "Hackers Delight" val remains unchanged if it is already a power of 2.

pure @safe @nogc nothrow
T
nextPow2
(
T
)
(
T val
)

Meta