Home
last modified time | relevance | path

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

/art/libartbase/base/
Dbit_utils_test.cc356 static_assert(BitFieldClear(0xFF, /*lsb=*/0, /*width=*/0) == 0xFF, "TestBitFieldClear#1");
357 static_assert(BitFieldClear(std::numeric_limits<uint32_t>::max(), /*lsb=*/0, /*width=*/32) == 0x0,
359 static_assert(BitFieldClear(std::numeric_limits<int32_t>::max(), /*lsb=*/0, /*width=*/32) == 0x0,
361 static_assert(BitFieldClear(0xFF, /*lsb=*/0, /*width=*/2) == 0b11111100, "TestBitFieldClear#4");
362 static_assert(BitFieldClear(0xFF, /*lsb=*/0, /*width=*/3) == 0b11111000, "TestBitFieldClear#5");
363 static_assert(BitFieldClear(0xFF, /*lsb=*/1, /*width=*/3) == 0b11110001, "TestBitFieldClear#6");
364 static_assert(BitFieldClear(0xFF, /*lsb=*/2, /*width=*/3) == 0b11100011, "TestBitFieldClear#7");
Dbit_string.h262 StorageType data = BitFieldClear(copy.storage_, lsb, bit_size); in Truncate()
Dbit_utils.h418 inline static constexpr T BitFieldClear(T value, size_t lsb, size_t width) { in BitFieldClear() function
454 const auto value_cleared = BitFieldClear(value, lsb, width); in BitFieldInsert()