MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Count

Method Count

src/util/bitset.h:176–176  ·  view source on GitHub ↗

Compute the number of 1 bits in the bitset. */

Source from the content-addressed store, hash-verified

174 }
175 /** Compute the number of 1 bits in the bitset. */
176 constexpr unsigned Count() const noexcept { return PopCount(m_val); }
177 /** Return the number of bits that this object holds. */
178 static constexpr unsigned Size() noexcept { return MAX_SIZE; }
179 /** Check if all bits are 0. */

Callers 15

TestOptimalLinearizationFunction · 0.45
CheckMethod · 0.45
CheckInvariantsFunction · 0.45
IsOversizedMethod · 0.45
FUZZ_TARGETFunction · 0.45
TestTypeFunction · 0.45
CheckMethod · 0.45
FindCandidateSetMethod · 0.45
ReadLinearizationFunction · 0.45
FUZZ_TARGETFunction · 0.45

Calls 1

PopCountFunction · 0.85

Tested by 14

TestOptimalLinearizationFunction · 0.36
CheckMethod · 0.36
CheckInvariantsFunction · 0.36
IsOversizedMethod · 0.36
FUZZ_TARGETFunction · 0.36
TestTypeFunction · 0.36
CheckMethod · 0.36
FindCandidateSetMethod · 0.36
ReadLinearizationFunction · 0.36
FUZZ_TARGETFunction · 0.36