Function nextPow2

  • Find smallest power-of-2 greater than or equal to given bigint.

    Parameters

    • x: bigint

      a bigint

    Returns bigint

    2ⁱ | 2ⁱ ≥ x and 2ⁱ < 2x

Generated using TypeDoc