Function nextPow2

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

    Parameters

    • x: number

      an int32

    Returns number

    2ᵃ | 2ᵃ > x and 2ᵃ ≤ 2x

Generated using TypeDoc