Function prevPow2

  • Find previous power-of-2 of an int32.

    Parameters

    • x: number

      an int32

    Returns number

    2ᵃ | 2ᵃ < x and 2ᵃ ≥ x/2

Generated using TypeDoc