Home
last modified time | relevance | path

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

12

/art/libartbase/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.h67 return word_index * 32u + CTZ(word); in FindIndex()
Dbit_utils.h69 constexpr int CTZ(T x) { in CTZ() function
84 return (x == 0) ? BitSizeOf<T>() : CTZ(static_cast<unsigned_type>(x)); in JAVASTYLE_CTZ()
119 return (value == 0) ? -1 : CTZ(value); in LeastSignificantBit()
156 return CTZ(x); in WhichPowerOf2()
Dbit_utils_iterator.h83 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.h114 const size_t shift = CTZ(left_edge); in VisitMarkedRange()
128 const size_t shift = CTZ(w); in VisitMarkedRange()
155 const size_t shift = CTZ(right_edge); in VisitMarkedRange()
176 const size_t shift = CTZ(w); in Walk()
Dspace_bitmap.cc200 const size_t shift = CTZ(garbage); in SweepWalk()
/art/libelffile/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.cc102 uint32_t first = CTZ(fp_spill_mask); in BuildFrame()
105 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in BuildFrame()
165 uint32_t first = CTZ(fp_spill_mask); in RemoveFrame()
167 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in RemoveFrame()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc156 API_ENFORCEMENT_POLICY_SHIFT = CTZ(HIDDEN_API_ENFORCEMENT_POLICY_MASK),
/art/runtime/
Dstack_map.cc162 uint32_t bit = CTZ(bits); in DecodeDexRegisterMap()
Dart_method.h181 static const int kAccFlagsShift = CTZ(kAccIntrinsicBits); in GetIntrinsic()
Dart_method.cc692 static const int kAccFlagsShift = CTZ(kAccIntrinsicBits); in SetIntrinsic()
Doat_file.cc2205 size_t index_mask_span = (mask != 0u) ? 32u - index_bits - CTZ(mask) : 0u; in DCheckIndexToBssMapping()
/art/compiler/optimizing/
Dintrinsics_x86_64.cc2412 value = is_long ? CTZ(static_cast<uint64_t>(value)) in GenOneBit()
2413 : CTZ(static_cast<uint32_t>(value)); in GenOneBit()
2612 value = is_long ? CTZ(static_cast<uint64_t>(value)) : CTZ(static_cast<uint32_t>(value)); in GenTrailingZeros()
Dintrinsics_x86.cc580 value = is_long ? CTZ(static_cast<uint64_t>(value)) in GenLowestOneBit()
581 : CTZ(static_cast<uint32_t>(value)); in GenLowestOneBit()
2421 value = is_long ? CTZ(static_cast<uint64_t>(value)) : CTZ(static_cast<uint32_t>(value)); in GenTrailingZeros()
Dinstruction_simplifier.cc1225 size_t trailing_ones = CTZ(~static_cast<uint64_t>(value)); in VisitTypeConversion()
1418 size_t num_tail_bits_set = CTZ(value + 1); in VisitAnd()
Dcode_generator_arm_vixl.cc347 uint32_t begin = CTZ(fp_spills); in SaveLiveRegisters()
350 uint32_t end = (tmp == 0u) ? 32u : CTZ(tmp); // CTZ(0) is undefined. in SaveLiveRegisters()
373 uint32_t begin = CTZ(fp_spills); in RestoreLiveRegisters()
376 uint32_t end = (tmp == 0u) ? 32u : CTZ(tmp); // CTZ(0) is undefined. in RestoreLiveRegisters()
2138 DCHECK_EQ(fpu_spill_mask_ >> CTZ(fpu_spill_mask_), ~0u >> (32 - POPCOUNT(fpu_spill_mask_))); in GenerateFrameEntry()
2180 DCHECK_EQ(fpu_spill_mask_ >> CTZ(fpu_spill_mask_), ~0u >> (32 - POPCOUNT(fpu_spill_mask_))); in GenerateFrameExit()
3981 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
Dregister_allocator_graph_color.cc1787 return conflict_mask.all() ? conflict_mask.size() : CTZ(~conflict_mask.to_ulong()); in FindFirstZeroInConflictMask()
Dnodes.cc3189 static_cast<uint32_t>(Intrinsics::k ## Name) <= (kAccIntrinsicBits >> CTZ(kAccIntrinsicBits)), \
Dcode_generator_x86_64.cc3621 int shift = CTZ(imm); in DivByPowerOfTwo()
3642 int shift = CTZ(imm); in DivByPowerOfTwo()
Dcode_generator_mips.cc3902 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
3949 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
Dcode_generator_arm64.cc2903 int ctz_imm = CTZ(abs_imm); in FOR_EACH_CONDITION_INSTRUCTION()
/art/compiler/utils/mips64/
Dassembler_mips64.h167 int shift_cnt = 64 - CTZ(value + UINT64_C(1)); in TemplateLoadConst64()
176 int shift_cnt = CTZ(value); in TemplateLoadConst64()
218 shift_cnt = 16 + CTZ(value >> 16); in TemplateLoadConst64()
/art/libdexfile/dex/
Ddex_file_verifier_test.cc665 uint32_t index = CTZ(src_value); in ApplyMaskShifted()

12