MCPcopy Create free account
hub / github.com/LFYSec/MScan / previousSetBit

Method previousSetBit

src/main/java/pascal/taie/util/collection/IBitSet.java:149–149  ·  view source on GitHub ↗

Returns the index of the nearest bit that is set to true 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. To iterate over the true bits in a BitSet, use the followin

(int fromIndex)

Source from the content-addressed store, hash-verified

147 * than {@code -1}
148 */
149 int previousSetBit(int fromIndex);
150
151 /**
152 * Returns the index of the nearest bit that is set to {@code false}

Callers 15

testPreviousSetBitMethod · 0.65
setEmptyMethod · 0.65
setBottomBitMethod · 0.65
setBetweenTwoMethod · 0.65
setInRunMethod · 0.65
setSameBitMethod · 0.65
setNoneBelowMethod · 0.65
setOneBelowMethod · 0.65
setTwoBelowMethod · 0.65
setTopBitMethod · 0.65
setLevel1MissMethod · 0.65

Implementers 1

AbstractBitSetsrc/main/java/pascal/taie/util/collect

Calls

no outgoing calls

Tested by 15

testPreviousSetBitMethod · 0.52
setEmptyMethod · 0.52
setBottomBitMethod · 0.52
setBetweenTwoMethod · 0.52
setInRunMethod · 0.52
setSameBitMethod · 0.52
setNoneBelowMethod · 0.52
setOneBelowMethod · 0.52
setTwoBelowMethod · 0.52
setTopBitMethod · 0.52
setLevel1MissMethod · 0.52