Home
last modified time | relevance | path

Searched refs:LastBit (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DBitFieldsTest.cpp93 TEST(BitfieldsTest, LastBit) { in TEST() argument
95 using LastBit = Bitfield::Element<bool, 7, 1>; in TEST() typedef
97 Bitfield::set<LastBit>(Storage, true); in TEST()
98 EXPECT_EQ(Bitfield::get<LastBit>(Storage), true); in TEST()
101 Bitfield::set<LastBit>(Storage, false); in TEST()
102 EXPECT_EQ(Bitfield::get<LastBit>(Storage), false); in TEST()
108 using LastBit = Bitfield::Element<bool, 63, 1>; in TEST() typedef
110 Bitfield::set<LastBit>(Storage, true); in TEST()
111 EXPECT_EQ(Bitfield::get<LastBit>(Storage), true); in TEST()
114 Bitfield::set<LastBit>(Storage, false); in TEST()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DBitfields.h165 static_assert(Bitfield::LastBit <= StorageBits, "Data must fit in mask");
230 static constexpr unsigned LastBit = Shift + Bits - 1;
277 return A::LastBit >= B::FirstBit && B::LastBit >= A::FirstBit;
H A DBitVector.h212 unsigned LastBit = (End - 1) % BITWORD_SIZE; variable
213 Copy &= maskTrailingOnes<BitWord>(LastBit + 1);
236 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_last_in() local
237 Copy &= maskTrailingOnes<BitWord>(LastBit + 1); in find_last_in()
273 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_last_unset_in() local
274 Copy |= maskTrailingZeros<BitWord>(LastBit + 1); in find_last_unset_in()