isPowerOf2

Returns true if x is power of two.

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

Meta