closestPowerOfTwo

open fun closestPowerOfTwo(value: Int): Int

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

Return

The closest power of two.

Parameters

value

The value.