nextPowerOfTwo

open fun nextPowerOfTwo(value: Int): Int

Returns the next power of two that is equal to or larger than the specified value.

Return

The next power of two.

Parameters

value

The value.