Function nextPow2

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

    Returns

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

    Parameters

    • x: bigint

      a bigint

    Returns bigint

Generated using TypeDoc