isPowerOf2

Check if x is a power of 2 (binary power). See also: http://forum.dlang.org/thread/zumhmosfkvwjymjhmtlt@forum.dlang.org#post-fvnmurrctavpfkunssdf:40forum.dlang.org

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

Meta