prevSetBit

abstract fun prevSetBit(index: Int): Int

Returns the index of the last set bit before or on the index specified. -1 is returned if there are no more set bits.