MCPcopy Create free account
hub / github.com/ablab/spades / find_first

Method find_first

ext/include/llvm/ADT/SparseBitVector.h:779–784  ·  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

777
778 // Return the first set bit in the bitmap. Return -1 if no bits are set.
779 int find_first() const {
780 if (Elements.empty())
781 return -1;
782 const SparseBitVectorElement<ElementSize> &First = *(Elements.begin());
783 return (First.index() * ElementSize) + First.find_first();
784 }
785
786 // Return the last set bit in the bitmap. Return -1 if no bits are set.
787 int find_last() const {

Callers 2

AdvanceToFirstNonZeroMethod · 0.45
AdvanceToNextNonZeroMethod · 0.45

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected