Function prevPow2

  • Find largest power-of-2 less than or equal to given bigint.

    Parameters

    • x: bigint

      a bigint

    Returns bigint

    2ⁱ | 2ⁱ ≤ x and 2ⁱ > x/2

Generated using TypeDoc