Function higherPowerOfTwo

  • Get the next higher power of two from n.

    Parameters

    • n: number

      Base value

    Returns number

    Next higher power of two

    Only works in a 32-bit range