Check if x is an exact (binary) power of 2. * * See_Also: http://forum.dlang.org/thread/zumhmosfkvwjymjhmtlt@forum.dlang.org#post-fvnmurrctavpfkunssdf:40forum.dlang.org * See_Also: http://forum.dlang.org/post/hloonbgclzloqemycnth@forum.dlang.org
ditto, avoids a jump instruction.
Check if x is an exact (binary) power of 2, except when x is zero then * zero is returned. * * See_Also: http://forum.dlang.org/thread/zumhmosfkvwjymjhmtlt@forum.dlang.org#post-fvnmurrctavpfkunssdf:40forum.dlang.org * See_Also: http://forum.dlang.org/post/hloonbgclzloqemycnth@forum.dlang.org