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

Method Count

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

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

Source from the content-addressed store, hash-verified

378 static constexpr unsigned Size() noexcept { return MAX_SIZE; }
379 /** Compute the number of 1 bits in the bitset. */
380 unsigned constexpr Count() const noexcept
381 {
382 unsigned ret{0};
383 for (I v : m_val) ret += PopCount(v);
384 return ret;
385 }
386 /** Check if all bits are 0. */
387 bool constexpr None() const noexcept
388 {

Callers

nothing calls this directly

Calls 1

PopCountFunction · 0.85

Tested by

no test coverage detected