Home
last modified time | relevance | path

Searched refs:CTZ (Results 1 – 25 of 30) 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.h88 return CTZ(this->bits_);
Dbit_memory_region.h248 int bit = CTZ(lhs_value ^ rhs_value); in Compare()
/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.h151 const size_t shift = CTZ(left_edge); in VisitMarkedRange()
168 const size_t shift = CTZ(w); in VisitMarkedRange()
198 const size_t shift = CTZ(right_edge); in VisitMarkedRange()
222 const size_t shift = CTZ(w); in Walk()
Dspace_bitmap.cc235 const size_t shift = CTZ(garbage); in SweepWalk()
/art/runtime/gc/collector/
Dmark_compact-inl.h138 size_t shift = CTZ(word); in VisitLiveStrides()
155 shift = CTZ(~word); in VisitLiveStrides()
205 uint32_t shift = CTZ(word); in FindNthLiveWordOffset()
209 shift = CTZ(~word); in FindNthLiveWordOffset()
/art/libelffile/dwarf/
Ddebug_frame_opcode_writer.h91 int num_zeros = CTZ(reg_mask); in RelOffsetForMany()
105 int num_zeros = CTZ(reg_mask); in RestoreMany()
/art/compiler/utils/arm/
Djni_macro_assembler_arm_vixl.cc119 uint32_t first = CTZ(fp_spill_mask); in BuildFrame()
122 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in BuildFrame()
191 uint32_t first = CTZ(fp_spill_mask); in RemoveFrame()
193 DCHECK_EQ(fp_spill_mask >> CTZ(fp_spill_mask), ~0u >> (32 - POPCOUNT(fp_spill_mask))); in RemoveFrame()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc161 API_ENFORCEMENT_POLICY_SHIFT = CTZ(HIDDEN_API_ENFORCEMENT_POLICY_MASK),
/art/runtime/oat/
Dstack_map.cc143 uint32_t bit = CTZ(bits); in DecodeDexRegisterMap()
Doat_file.cc2490 size_t index_mask_span = (mask != 0u) ? 32u - index_bits - CTZ(mask) : 0u; in DCheckIndexToBssMapping()
/art/runtime/
Dart_method.cc726 static const int kAccFlagsShift = CTZ(kAccIntrinsicBits); in SetIntrinsic()
Dart_method.h252 static const int kAccFlagsShift = CTZ(kAccIntrinsicBits);
/art/libdexfile/dex/
Ddex_file_verifier_test.cc660 uint32_t index = CTZ(src_value); in ApplyMaskShifted()
/art/compiler/optimizing/
Dintrinsics_x86.cc516 value = is_long ? CTZ(static_cast<uint64_t>(value)) in GenLowestOneBit()
517 : CTZ(static_cast<uint32_t>(value)); in GenLowestOneBit()
2966 value = is_long ? CTZ(static_cast<uint64_t>(value)) : CTZ(static_cast<uint32_t>(value)); in GenTrailingZeros()
Dintrinsics_x86_64.cc2936 value = is_long ? CTZ(static_cast<uint64_t>(value)) in GenOneBit()
2937 : CTZ(static_cast<uint32_t>(value)); in GenOneBit()
3136 value = is_long ? CTZ(static_cast<uint64_t>(value)) : CTZ(static_cast<uint32_t>(value)); in GenTrailingZeros()
Dintrinsics_arm64.cc1561 constexpr int first_callee_save = CTZ(kArm64CalleeSaveRefSpills); in VisitJdkUnsafeCompareAndSetReference()
4769 constexpr int first_callee_save = CTZ(kArm64CalleeSaveRefSpills); in CreateVarHandleCommonLocations()
5048 uint32_t first_callee_save = CTZ(kArm64CalleeSaveRefSpills); in CreateVarHandleCompareAndSetOrExchangeLocations()
5049 uint32_t second_callee_save = CTZ(kArm64CalleeSaveRefSpills ^ (1u << first_callee_save)); in CreateVarHandleCompareAndSetOrExchangeLocations()
Dinstruction_simplifier.cc1450 size_t trailing_ones = CTZ(~static_cast<uint64_t>(value)); in VisitTypeConversion()
1645 size_t num_tail_bits_set = CTZ(value + 1); in VisitAnd()
Dcode_generator_arm_vixl.cc332 uint32_t begin = CTZ(fp_spills); in SaveLiveRegisters()
335 uint32_t end = (tmp == 0u) ? 32u : CTZ(tmp); // CTZ(0) is undefined. in SaveLiveRegisters()
358 uint32_t begin = CTZ(fp_spills); in RestoreLiveRegisters()
361 uint32_t end = (tmp == 0u) ? 32u : CTZ(tmp); // CTZ(0) is undefined. in RestoreLiveRegisters()
2462 DCHECK_EQ(fpu_spill_mask_ >> CTZ(fpu_spill_mask_), ~0u >> (32 - POPCOUNT(fpu_spill_mask_))); in GenerateFrameEntry()
2541 DCHECK_EQ(fpu_spill_mask_ >> CTZ(fpu_spill_mask_), ~0u >> (32 - POPCOUNT(fpu_spill_mask_))); in GenerateFrameExit()
4515 int ctz_imm = CTZ(abs_imm); in DivRemByPowerOfTwo()
Dintrinsics_riscv64.cc3482 constexpr int first_callee_save = CTZ(kRiscv64CalleeSaveRefSpills); in CreateVarHandleCommonLocations()
3775 uint32_t first_callee_save = CTZ(kRiscv64CalleeSaveRefSpills); in CreateVarHandleCompareAndSetOrExchangeLocations()
3776 uint32_t second_callee_save = CTZ(kRiscv64CalleeSaveRefSpills ^ (1u << first_callee_save)); in CreateVarHandleCompareAndSetOrExchangeLocations()
Dintrinsics_arm_vixl.cc4488 constexpr int first_callee_save = CTZ(kArmCalleeSaveRefSpills); in CreateVarHandleCommonLocations()
4849 constexpr int first_callee_save = CTZ(kArmCalleeSaveRefSpills); in CreateVarHandleCompareAndSetOrExchangeLocations()
4850 constexpr int second_callee_save = CTZ(kArmCalleeSaveRefSpills ^ (1u << first_callee_save)); in CreateVarHandleCompareAndSetOrExchangeLocations()
/art/compiler/utils/riscv64/
Dassembler_riscv64.cc7658 } else if (CTZ(value) < 12 && IsInt(6 + CTZ(value), value)) { in LoadImmediate()
7660 addi(rd, Zero, value >> CTZ(value)); in LoadImmediate()
7661 slli(rd, rd, CTZ(value)); in LoadImmediate()
7711 size_t shamt = CTZ(remaining); in LoadImmediate()
7752 int64_t value = imm >> CTZ(imm); in LoadImmediate()
7757 trailing_slli_shamt = CTZ(imm); in LoadImmediate()
7787 size_t ctz = CTZ(static_cast<uint64_t>(value)); in LoadImmediate()
7810 size_t slli_shamt = CTZ(remainder); in LoadImmediate()

12