isPowerOf2

Returns true if x is power of two.

@nogc pure @safe
bool
isPowerOf2
(
T = uint
)
(
T x
)

Meta