log2

Computes the base-2 logarithm of the input for any floating-point type.

  1. T log2(T x)
  2. T log2(T x)
  3. T log2(T x)
    version(!LDC && !GNU)
    static if(!(__VERSION__ >= 2082))
    T
    log2
    (
    T
    )
    (
    in T x
    )
    if (
    isFloatingPoint!T
    )