Home
last modified time | relevance | path

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

/external/llvm-project/llvm/unittests/ADT/
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 …]
/external/llvm-project/llvm/include/llvm/ADT/
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;
DBitVector.h233 unsigned LastBit = (End - 1) % BITWORD_SIZE; variable
234 Copy &= maskTrailingOnes<BitWord>(LastBit + 1);
257 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_last_in() local
258 Copy &= maskTrailingOnes<BitWord>(LastBit + 1); in find_last_in()
294 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_last_unset_in() local
295 Copy |= maskTrailingZeros<BitWord>(LastBit + 1); in find_last_unset_in()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DBitVector.h225 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_first_in() local
226 Copy &= maskTrailingOnes<BitWord>(LastBit + 1); in find_first_in()
249 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_last_in() local
250 Copy &= maskTrailingOnes<BitWord>(LastBit + 1); in find_last_in()
285 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_first_unset_in() local
286 Copy |= maskTrailingZeros<BitWord>(LastBit + 1); in find_first_unset_in()
311 unsigned LastBit = (End - 1) % BITWORD_SIZE; in find_last_unset_in() local
312 Copy |= maskTrailingZeros<BitWord>(LastBit + 1); in find_last_unset_in()