Searched refs:MaskLeastSignificant (Results 1 – 6 of 6) sorted by relevance
391 inline static constexpr std::make_unsigned_t<T> MaskLeastSignificant(size_t bits) { in MaskLeastSignificant() function421 const auto mask = MaskLeastSignificant<T>(width); in BitFieldClear()453 const auto data_mask = MaskLeastSignificant<T2>(width); in BitFieldInsert()487 static_cast<T>((val >> lsb) & MaskLeastSignificant<T>(width)); in BitFieldExtract()495 const auto ones_negmask = ~MaskLeastSignificant<T>(width); in BitFieldExtract()
348 static_assert(MaskLeastSignificant(0) == 0b0, "TestMaskLeastSignificant#1");349 static_assert(MaskLeastSignificant(1) == 0b1, "TestMaskLeastSignificant#2");350 static_assert(MaskLeastSignificant(2) == 0b11, "TestMaskLeastSignificant#3");351 static_assert(MaskLeastSignificant<uint8_t>(8) == 0xFF, "TestMaskLeastSignificant#4");352 static_assert(MaskLeastSignificant<int8_t>(8) == 0xFF, "TestMaskLeastSignificant#5");353 static_assert(MaskLeastSignificant<uint64_t>(63) == (std::numeric_limits<uint64_t>::max() >> 1u),
143 EXPECT_EQ(MaskLeastSignificant(BitString::GetBitLengthTotalAtPosition(BitString::kCapacity)), in TEST()
50 DCHECK_EQ(0u, data & ~MaskLeastSignificant(bitlength_)) in BitStringChar()
307 return MaskLeastSignificant<BitString::StorageType>(bitlength); in GetEncodedPathToRootMask()
3135 tst_mask = MaskLeastSignificant<uint64_t>(63); in GenIsInfinite()3139 tst_mask = MaskLeastSignificant<uint32_t>(31); in GenIsInfinite()