Function prevPow2

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

    Returns

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

    Parameters

    • x: bigint

      a bigint

    Returns bigint

Generated using TypeDoc