nextPow2

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

@nogc
T
nextPow2
(
T
)
(
T val
)

Meta