/art/disassembler/ |
D | disassembler_riscv64.cc | 118 return BitFieldExtract(insn16, 5, 1) << 6 | BitFieldExtract(insn16, 10, 3) << 3 | in Decode16CMOffsetW() 119 BitFieldExtract(insn16, 6, 1) << 2; in Decode16CMOffsetW() 126 return BitFieldExtract(insn16, 5, 2) << 6 | BitFieldExtract(insn16, 10, 3) << 3; in Decode16CMOffsetD() 133 return (BitFieldExtract(uimm6, 3, 3) << 3) | (BitFieldExtract(uimm6, 0, 3) << 6); in Uimm6ToOffsetD16() 140 return (BitFieldExtract(uimm6, 2, 4) << 2) | (BitFieldExtract(uimm6, 0, 2) << 6); in Uimm6ToOffsetW16() 172 BitFieldInsert(BitFieldExtract(insn16, 2, 5), BitFieldExtract(insn16, 12, 1), 5, 1); in Decode16Imm6() 190 static uint32_t GetRs1Short16(uint32_t insn16) { return BitFieldExtract(insn16, 7, 3) + 8u; } in GetRs1Short16() 191 static uint32_t GetRs2Short16(uint32_t insn16) { return BitFieldExtract(insn16, 2, 3) + 8u; } in GetRs2Short16() 192 static uint32_t GetRs1_16(uint32_t insn16) { return BitFieldExtract(insn16, 7, 5); } in GetRs1_16() 193 static uint32_t GetRs2_16(uint32_t insn16) { return BitFieldExtract(insn16, 2, 5); } in GetRs2_16() [all …]
|
/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 | 415 values[i] = BitFieldExtract(data, i * kVarintBits, kVarintBits); in ReadInterleavedVarints()
|
D | bit_utils.h | 491 inline static constexpr T BitFieldExtract(T value, size_t lsb, size_t width) { in BitFieldExtract() function
|
/art/compiler/utils/riscv64/ |
D | assembler_riscv64.h | 2264 uint32_t imm_52 = BitFieldExtract(u_offset, 2, 4); in ExtractOffset52_76() 2265 uint32_t imm_76 = BitFieldExtract(u_offset, 6, 2); in ExtractOffset52_76() 2277 uint32_t imm_53 = BitFieldExtract(u_offset, 3, 3); in ExtractOffset53_86() 2278 uint32_t imm_86 = BitFieldExtract(u_offset, 6, 3); in ExtractOffset53_86() 2290 uint32_t imm_52 = BitFieldExtract(u_offset, 2, 4); in ExtractOffset52_6() 2291 uint32_t imm_6 = BitFieldExtract(u_offset, 6, 1); in ExtractOffset52_6() 2303 uint32_t imm_53 = BitFieldExtract(u_offset, 3, 3); in ExtractOffset53_76() 2304 uint32_t imm_76 = BitFieldExtract(u_offset, 6, 2); in ExtractOffset53_76() 2526 uint32_t immH1 = BitFieldExtract(imm6, 5, 1); in EmitCI() 2527 uint32_t immL5 = BitFieldExtract(imm6, 0, 5); in EmitCI() [all …]
|
D | assembler_riscv64.cc | 1350 uint32_t imms1 = BitFieldExtract(unzimm, 9, 1); in CAddi16Sp() 1352 uint32_t imms0 = (BitFieldExtract(unzimm, 4, 1) << 4) | in CAddi16Sp() 1353 (BitFieldExtract(unzimm, 6, 1) << 3) | in CAddi16Sp() 1354 (BitFieldExtract(unzimm, 7, 2) << 1) | in CAddi16Sp() 1355 BitFieldExtract(unzimm, 5, 1); in CAddi16Sp() 1367 uint32_t uimm = (BitFieldExtract(nzuimm, 4, 2) << 6) | in CAddi4Spn() 1368 (BitFieldExtract(nzuimm, 6, 4) << 2) | in CAddi4Spn() 1369 (BitFieldExtract(nzuimm, 2, 1) << 1) | in CAddi4Spn() 1370 BitFieldExtract(nzuimm, 3, 1); in CAddi4Spn() 1457 EmitCAReg(0b100001u, rs1_s, BitFieldExtract<uint32_t>(offset, 1, 1), rd_s, 0b00u); in CLhu() [all …]
|