Home
last modified time | relevance | path

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

/art/runtime/base/
Dbit_utils_test.cc45 static_assert(0 == CTZ<uint32_t>(1u), "TestCTZ32#1");
46 static_assert(1 == CTZ<uint32_t>(2u), "TestCTZ32#2");
47 static_assert(15 == CTZ<uint32_t>(0x45678000u), "TestCTZ32#3");
48 static_assert(16 == CTZ<uint32_t>(0x43210000u), "TestCTZ32#4");
49 static_assert(30 == CTZ<uint32_t>(0xc0000000u), "TestCTZ32#5");
50 static_assert(31 == CTZ<uint32_t>(0x80000000u), "TestCTZ32#6");
53 static_assert(0 == CTZ<uint64_t>(UINT64_C(1)), "TestCTZ64#1");
54 static_assert(1 == CTZ<uint64_t>(UINT64_C(2)), "TestCTZ64#2");
55 static_assert(16 == CTZ<uint64_t>(UINT64_C(0x43210000)), "TestCTZ64#3");
56 static_assert(31 == CTZ<uint64_t>(UINT64_C(0x80000000)), "TestCTZ64#4");
[all …]
Dbit_vector-inl.h65 return word_index * 32u + CTZ(word); in FindIndex()
Dbit_utils.h63 constexpr int CTZ(T x) { in CTZ() function
78 return (x == 0) ? BitSizeOf<T>() : CTZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CTZ()
113 return (value == 0) ? -1 : CTZ(value); in LeastSignificantBit()
142 return CTZ(x); in WhichPowerOf2()
Dbit_utils_iterator.h82 return CTZ(this->bits_);
/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.h111 const size_t shift = CTZ(left_edge); in VisitMarkedRange()
124 const size_t shift = CTZ(w); in VisitMarkedRange()
150 const size_t shift = CTZ(right_edge); in VisitMarkedRange()
170 const size_t shift = CTZ(w); in Walk()
Dspace_bitmap.cc184 const size_t shift = CTZ(garbage); in SweepWalk()
/art/compiler/debug/dwarf/
Ddebug_frame_opcode_writer.h89 int num_zeros = CTZ(reg_mask); in RelOffsetForMany()
103 int num_zeros = CTZ(reg_mask); in RestoreMany()
/art/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.cc78 uint32_t first = CTZ(fp_spill_mask); in BuildFrame()
81 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in BuildFrame()
141 uint32_t first = CTZ(fp_spill_mask); in RemoveFrame()
143 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in RemoveFrame()
/art/compiler/utils/mips64/
Dassembler_mips64.h166 int shift_cnt = 64 - CTZ(value + UINT64_C(1)); in TemplateLoadConst64()
175 int shift_cnt = CTZ(value); in TemplateLoadConst64()
217 shift_cnt = 16 + CTZ(value >> 16); in TemplateLoadConst64()
/art/compiler/optimizing/
Dintrinsics_x86_64.cc2716 value = is_long ? CTZ(static_cast<uint64_t>(value)) in GenOneBit()
2717 : CTZ(static_cast<uint32_t>(value)); in GenOneBit()
2913 value = is_long ? CTZ(static_cast<uint64_t>(value)) : CTZ(static_cast<uint32_t>(value)); in GenTrailingZeros()
Dinstruction_simplifier.cc938 size_t trailing_ones = CTZ(~static_cast<uint64_t>(value)); in VisitTypeConversion()
1065 size_t num_tail_bits_set = CTZ(value + 1); in VisitAnd()
Dcode_generator_arm_vixl.cc308 uint32_t begin = CTZ(fp_spills); in SaveLiveRegisters()
311 uint32_t end = (tmp == 0u) ? 32u : CTZ(tmp); // CTZ(0) is undefined. in SaveLiveRegisters()
334 uint32_t begin = CTZ(fp_spills); in RestoreLiveRegisters()
337 uint32_t end = (tmp == 0u) ? 32u : CTZ(tmp); // CTZ(0) is undefined. in RestoreLiveRegisters()
2668 DCHECK_EQ(fpu_spill_mask_ >> CTZ(fpu_spill_mask_), ~0u >> (32 - POPCOUNT(fpu_spill_mask_))); in GenerateFrameEntry()
2708 DCHECK_EQ(fpu_spill_mask_ >> CTZ(fpu_spill_mask_), ~0u >> (32 - POPCOUNT(fpu_spill_mask_))); in GenerateFrameExit()
4552 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
Dregister_allocator_graph_color.cc1762 return conflict_mask.all() ? conflict_mask.size() : CTZ(~conflict_mask.to_ulong()); in FindFirstZeroInConflictMask()
Dintrinsics_x86.cc2753 value = is_long ? CTZ(static_cast<uint64_t>(value)) : CTZ(static_cast<uint32_t>(value)); in GenTrailingZeros()
Dcode_generator_x86_64.cc3532 int shift = CTZ(imm); in DivByPowerOfTwo()
3548 int shift = CTZ(imm); in DivByPowerOfTwo()
Dcode_generator_arm64.cc3366 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
Dcode_generator_mips64.cc3121 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
Dcode_generator_x86.cc3511 int shift = CTZ(imm); in DivByPowerOfTwo()
Dcode_generator_mips.cc3588 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
/art/runtime/
Ddex_file_verifier_test.cc670 uint32_t index = CTZ(src_value); in ApplyMaskShifted()
Doat_file.cc598 size_t index_mask_span = (entry.index_mask != 0u) ? 16u - CTZ(entry.index_mask) : 0u; in Setup()