Searched refs:CTZ (Results 1 – 20 of 20) sorted by relevance
/art/runtime/base/ |
D | bit_utils_test.cc | 44 static_assert(0 == CTZ<uint32_t>(1u), "TestCTZ32#1"); 45 static_assert(1 == CTZ<uint32_t>(2u), "TestCTZ32#2"); 46 static_assert(15 == CTZ<uint32_t>(0x45678000u), "TestCTZ32#3"); 47 static_assert(16 == CTZ<uint32_t>(0x43210000u), "TestCTZ32#4"); 48 static_assert(30 == CTZ<uint32_t>(0xc0000000u), "TestCTZ32#5"); 49 static_assert(31 == CTZ<uint32_t>(0x80000000u), "TestCTZ32#6"); 52 static_assert(0 == CTZ<uint64_t>(UINT64_C(1)), "TestCTZ64#1"); 53 static_assert(1 == CTZ<uint64_t>(UINT64_C(2)), "TestCTZ64#2"); 54 static_assert(16 == CTZ<uint64_t>(UINT64_C(0x43210000)), "TestCTZ64#3"); 55 static_assert(31 == CTZ<uint64_t>(UINT64_C(0x80000000)), "TestCTZ64#4"); [all …]
|
D | bit_utils.h | 41 static constexpr int CTZ(T x) { in CTZ() function 70 return (value == 0) ? -1 : CTZ(value); in LeastSignificantBit() 99 return CTZ(x); in WhichPowerOf2() 307 return CTZ(this->bits_);
|
D | bit_vector-inl.h | 65 return word_index * 32u + CTZ(word); in FindIndex()
|
/art/runtime/gc/accounting/ |
D | bitmap-inl.h | 89 const size_t shift = CTZ(left_edge); in VisitSetBits() 101 const size_t shift = CTZ(w); in VisitSetBits() 125 const size_t shift = CTZ(right_edge); in VisitSetBits()
|
D | space_bitmap-inl.h | 110 const size_t shift = CTZ(left_edge); in VisitMarkedRange() 123 const size_t shift = CTZ(w); in VisitMarkedRange() 149 const size_t shift = CTZ(right_edge); in VisitMarkedRange()
|
D | space_bitmap.cc | 122 const size_t shift = CTZ(w); in Walk() 170 const size_t shift = CTZ(garbage); in SweepWalk() 262 const size_t shift = CTZ(w); in InOrderWalk()
|
/art/compiler/dex/quick/ |
D | resource_mask.cc | 161 res = (low_regs != 0) ? &kSingleRegMasks[SingleRegMaskIndex(index, CTZ(low_regs))] in GetMask() 166 res = &kTwoRegsMasks[TwoRegsIndex(CTZ(low_regs_without_lowest), CTZ(low_regs))]; in GetMask()
|
D | gen_common.cc | 1676 int k = CTZ(lit); in HandleEasyDivRem() 1756 OpRegRegImm(kOpLsl, rl_result.reg, rl_src.reg, CTZ(lit)); in HandleEasyMultiply() 1759 int first_bit = CTZ(lit); in HandleEasyMultiply() 1760 int second_bit = CTZ(lit ^ (1 << first_bit)); in HandleEasyMultiply() 1767 OpRegRegImm(kOpLsl, t_reg, rl_src.reg, CTZ(lit + 1)); in HandleEasyMultiply()
|
/art/compiler/dwarf/ |
D | debug_frame_opcode_writer.h | 87 int num_zeros = CTZ(reg_mask); in RelOffsetForMany() 101 int num_zeros = CTZ(reg_mask); in RestoreMany()
|
/art/compiler/dex/quick/arm/ |
D | int_arm.cc | 592 op->shift = CTZ(lit); in GetEasyMultiplyOp() 598 op->shift = CTZ(lit - 1); in GetEasyMultiplyOp() 604 op->shift = CTZ(lit + 1); in GetEasyMultiplyOp() 622 uint32_t shift = CTZ(lit1); in GetEasyMultiplyTwoOps() 630 shift = CTZ(lit1); in GetEasyMultiplyTwoOps() 638 shift = CTZ(lit1); in GetEasyMultiplyTwoOps()
|
D | call_arm.cc | 425 NewLIR1(kThumb2Push1, CTZ(core_spill_mask_)); in GenEntrySequence() 563 NewLIR1(kThumb2Pop1, CTZ(core_spill_mask_)); in GenExitSequence()
|
D | utility_arm.cc | 122 int z_trailing = CTZ(value); in ModifiedImmediate()
|
/art/compiler/utils/arm/ |
D | assembler_arm.cc | 404 vpushs(SRegister(CTZ(fp_spill_mask)), POPCOUNT(fp_spill_mask)); in BuildFrame() 460 vpops(SRegister(CTZ(fp_spill_mask)), POPCOUNT(fp_spill_mask)); in RemoveFrame()
|
D | assembler_thumb2.cc | 417 int reg = CTZ(static_cast<uint32_t>(regs)); in ldm() 435 int reg = CTZ(static_cast<uint32_t>(regs)); in stm()
|
/art/compiler/dex/quick/arm64/ |
D | int_arm64.cc | 551 int k = CTZ(lit); in HandleEasyDivRem64() 1425 int first_bit_set = CTZ(reg_mask) + 1; in ExtractReg() 1449 int first_bit_set = CTZ(reg_mask) + 1; in GenPairWise() 1455 int second_bit_set = CTZ(reg_mask) + 1; in GenPairWise()
|
/art/compiler/utils/mips64/ |
D | assembler_mips64.cc | 674 int shift_cnt = CTZ(value); in LoadConst64() 697 shift_cnt = 16 + CTZ(value >> 16); in LoadConst64()
|
/art/compiler/dex/quick/x86/ |
D | int_x86.cc | 662 int shift_amount = CTZ(imm); in GenDivRemLit() 1755 int shift_amount = CTZ(val); in GenMulLongConst() 2198 int shift_amount = CTZ(imm); in GenDivRemLongLit()
|
/art/disassembler/ |
D | disassembler_arm.cc | 1831 size_t count = 3 - CTZ(mask); in DumpThumb16()
|
/art/compiler/optimizing/ |
D | code_generator_x86_64.cc | 2522 int shift = CTZ(imm); in DivByPowerOfTwo() 2538 int shift = CTZ(imm); in DivByPowerOfTwo()
|
D | code_generator_x86.cc | 2371 int shift = CTZ(imm); in DivByPowerOfTwo()
|