MCPcopy Create free account
hub / github.com/SVF-tools/SVF / find_first

Method find_first

svf/include/Util/SparseBitVector.h:1119–1125  ·  view source on GitHub ↗

Return the first set bit in the bitmap. Return -1 if no bits are set.

Source from the content-addressed store, hash-verified

1117
1118 // Return the first set bit in the bitmap. Return -1 if no bits are set.
1119 int find_first() const
1120 {
1121 if (Elements.empty())
1122 return -1;
1123 const SparseBitVectorElement<ElementSize> &First = *(Elements.begin());
1124 return (First.index() * ElementSize) + First.find_first();
1125 }
1126
1127 // Return the last set bit in the bitmap. Return -1 if no bits are set.
1128 int find_last() const

Callers 3

AdvanceToFirstNonZeroMethod · 0.45
AdvanceToNextNonZeroMethod · 0.45
operator()Method · 0.45

Calls 3

indexMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected