isPowerOf2

Returns true if x is power of two.

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

Meta