Home
last modified time | relevance | path

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

/art/libartbase/base/
Dbit_utils_test.cc407 static_assert(BitFieldInsert(0xFF, /*data=*/0x0, /*lsb=*/0, /*width=*/0) == 0xFF,
409 static_assert(BitFieldInsert(std::numeric_limits<uint32_t>::max(),
415 static_assert(BitFieldInsert(std::numeric_limits<int32_t>::max(),
421 static_assert(BitFieldInsert(0u,
427 static_assert(BitFieldInsert(-(-0),
433 static_assert(BitFieldInsert(0x00, /*data=*/0b11u, /*lsb=*/0, /*width=*/2) == 0b00000011,
435 static_assert(BitFieldInsert(0x00, /*data=*/0b111u, /*lsb=*/0, /*width=*/3) == 0b00000111,
437 static_assert(BitFieldInsert(0x00, /*data=*/0b111u, /*lsb=*/1, /*width=*/3) == 0b00001110,
439 static_assert(BitFieldInsert(0x00, /*data=*/0b111u, /*lsb=*/2, /*width=*/3) == 0b00011100,
441 static_assert(BitFieldInsert(0b01011100, /*data=*/0b1101u, /*lsb=*/4, /*width=*/4) == 0b11011100,
Dbit_string.h198 storage_ = BitFieldInsert(storage_, in SetAt()
Dbit_struct.h169 storage_ = BitFieldInsert(storage_, extracted, kBitOffset, kBitWidth); in Set()
Dbit_utils.h445 inline static constexpr T BitFieldInsert(T value, T2 data, size_t lsb, size_t width) { in BitFieldInsert() function