Searched refs:BitFieldExtract (Results 1 – 5 of 5) sorted by relevance
/art/libartbase/base/ |
D | bit_utils_test.cc | 366 static_assert(BitFieldExtract(0xFF, /*lsb=*/0, /*width=*/0) == 0x0, "TestBitFieldExtract#1"); 367 static_assert(BitFieldExtract(std::numeric_limits<uint32_t>::max(), /*lsb=*/0, /*width=*/32) 370 static_assert(BitFieldExtract(std::numeric_limits<int32_t>::max(), /*lsb=*/0, /*width=*/32) 373 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/0, /*width=*/2) == 0b00000011, 375 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/0, /*width=*/3) == 0b00000111, 377 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/1, /*width=*/3) == 0b00000111, 379 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/2, /*width=*/3) == 0b00000111, 381 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/3, /*width=*/3) == 0b00000111, 383 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/8, /*width=*/3) == 0b00000000, 385 static_assert(BitFieldExtract(static_cast<uint32_t>(0xFF), /*lsb=*/7, /*width=*/3) == 0b00000001, [all …]
|
D | bit_struct.h | 125 return BitFieldExtract(storage_, kBitOffset, kBitWidth); in StorageType() 161 ExtractionType extracted = BitFieldExtract(storage, kBitOffset, kBitWidth); in Get()
|
D | bit_string.h | 185 StorageType data = BitFieldExtract(storage_, GetLsbForPosition(idx), kBitSizeAtPosition[idx]);
|
D | bit_memory_region.h | 305 values[i] = BitFieldExtract(data, i * kVarintBits, kVarintBits); in ReadInterleavedVarints()
|
D | bit_utils.h | 482 inline static constexpr T BitFieldExtract(T value, size_t lsb, size_t width) { in BitFieldExtract() function
|