previousClearBit

fun previousClearBit(fromIndex: Int): Int

Returns the index of the nearest bit that is set to false that occurs on or before the specified starting index. If no such bit exists, or if -1 is given as the starting index, then -1 is returned.

Return

the index of the previous clear bit, or -1 if there is no such bit

Since

1.7

Parameters

fromIndex

the index to start checking from (inclusive)

Throws

if the specified index is less than -1