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

Method IsSubsetOf

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

Check if bitset a is a subset of bitset b (= every 1 bit in a is also in b). */

Source from the content-addressed store, hash-verified

220 constexpr bool IsSupersetOf(const IntBitSet& a) const noexcept { return (a.m_val & ~m_val) == 0; }
221 /** Check if bitset a is a subset of bitset b (= every 1 bit in a is also in b). */
222 constexpr bool IsSubsetOf(const IntBitSet& a) const noexcept { return (m_val & ~a.m_val) == 0; }
223 /** Swap two bitsets. */
224 friend constexpr void swap(IntBitSet& a, IntBitSet& b) noexcept { std::swap(a.m_val, b.m_val); }
225};

Callers 11

AddDependenciesMethod · 0.45
GetConnectedComponentMethod · 0.45
SetInfoClass · 0.45
operator-Method · 0.45
SanityCheckMethod · 0.45
FUZZ_TARGETFunction · 0.45
TestTypeFunction · 0.45
ExhaustiveLinearizeFunction · 0.45
FUZZ_TARGETFunction · 0.45
SanityCheckFunction · 0.45

Calls

no outgoing calls

Tested by 6

FUZZ_TARGETFunction · 0.36
TestTypeFunction · 0.36
ExhaustiveLinearizeFunction · 0.36
FUZZ_TARGETFunction · 0.36
SanityCheckFunction · 0.36