Home
last modified time | relevance | path

Searched refs:CTZ (Results 1 – 20 of 20) sorted by relevance

/art/runtime/base/
Dbit_utils_test.cc44 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 …]
Dbit_utils.h41 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_);
Dbit_vector-inl.h65 return word_index * 32u + CTZ(word); in FindIndex()
/art/runtime/gc/accounting/
Dbitmap-inl.h89 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()
Dspace_bitmap-inl.h110 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()
Dspace_bitmap.cc122 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/
Dresource_mask.cc161 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()
Dgen_common.cc1676 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/
Ddebug_frame_opcode_writer.h87 int num_zeros = CTZ(reg_mask); in RelOffsetForMany()
101 int num_zeros = CTZ(reg_mask); in RestoreMany()
/art/compiler/dex/quick/arm/
Dint_arm.cc592 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()
Dcall_arm.cc425 NewLIR1(kThumb2Push1, CTZ(core_spill_mask_)); in GenEntrySequence()
563 NewLIR1(kThumb2Pop1, CTZ(core_spill_mask_)); in GenExitSequence()
Dutility_arm.cc122 int z_trailing = CTZ(value); in ModifiedImmediate()
/art/compiler/utils/arm/
Dassembler_arm.cc404 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()
Dassembler_thumb2.cc417 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/
Dint_arm64.cc551 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/
Dassembler_mips64.cc674 int shift_cnt = CTZ(value); in LoadConst64()
697 shift_cnt = 16 + CTZ(value >> 16); in LoadConst64()
/art/compiler/dex/quick/x86/
Dint_x86.cc662 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/
Ddisassembler_arm.cc1831 size_t count = 3 - CTZ(mask); in DumpThumb16()
/art/compiler/optimizing/
Dcode_generator_x86_64.cc2522 int shift = CTZ(imm); in DivByPowerOfTwo()
2538 int shift = CTZ(imm); in DivByPowerOfTwo()
Dcode_generator_x86.cc2371 int shift = CTZ(imm); in DivByPowerOfTwo()