nextPow2

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

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

Meta