nextPowerOfTwo

Returns the smallest power of two that is greater than or equal to this value.

Values at or below 1, including negatives, return 1. Throws ArithmeticException when this value exceeds 2^30 (1073741824), the largest power of two representable in Int.