isPow2B

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

  1. alias isPowerOf2 = isPow2
  2. bool isPow2A(T x)
  3. bool isPow2B(T x)
    bool
    isPow2B
    (
    T
    )
    (
    T x
    )
    if (
    isIntegral!T
    )

Meta