/art/libartbase/base/ |
D | bit_utils_test.cc | 45 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 …]
|
D | bit_vector-inl.h | 67 return word_index * 32u + CTZ(word); in FindIndex()
|
D | bit_utils.h | 69 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()
|
D | bit_utils_iterator.h | 88 return CTZ(this->bits_);
|
D | bit_memory_region.h | 248 int bit = CTZ(lhs_value ^ rhs_value); in Compare()
|
/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 | 151 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()
|
D | space_bitmap.cc | 235 const size_t shift = CTZ(garbage); in SweepWalk()
|
/art/runtime/gc/collector/ |
D | mark_compact-inl.h | 138 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/ |
D | debug_frame_opcode_writer.h | 91 int num_zeros = CTZ(reg_mask); in RelOffsetForMany() 105 int num_zeros = CTZ(reg_mask); in RestoreMany()
|
/art/compiler/utils/arm/ |
D | jni_macro_assembler_arm_vixl.cc | 119 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/ |
D | dalvik_system_ZygoteHooks.cc | 161 API_ENFORCEMENT_POLICY_SHIFT = CTZ(HIDDEN_API_ENFORCEMENT_POLICY_MASK),
|
/art/runtime/oat/ |
D | stack_map.cc | 143 uint32_t bit = CTZ(bits); in DecodeDexRegisterMap()
|
D | oat_file.cc | 2490 size_t index_mask_span = (mask != 0u) ? 32u - index_bits - CTZ(mask) : 0u; in DCheckIndexToBssMapping()
|
/art/runtime/ |
D | art_method.cc | 726 static const int kAccFlagsShift = CTZ(kAccIntrinsicBits); in SetIntrinsic()
|
D | art_method.h | 252 static const int kAccFlagsShift = CTZ(kAccIntrinsicBits);
|
/art/libdexfile/dex/ |
D | dex_file_verifier_test.cc | 660 uint32_t index = CTZ(src_value); in ApplyMaskShifted()
|
/art/compiler/optimizing/ |
D | intrinsics_x86.cc | 516 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()
|
D | intrinsics_x86_64.cc | 2936 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()
|
D | intrinsics_arm64.cc | 1561 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()
|
D | instruction_simplifier.cc | 1450 size_t trailing_ones = CTZ(~static_cast<uint64_t>(value)); in VisitTypeConversion() 1645 size_t num_tail_bits_set = CTZ(value + 1); in VisitAnd()
|
D | code_generator_arm_vixl.cc | 332 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()
|
D | intrinsics_riscv64.cc | 3482 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()
|
D | intrinsics_arm_vixl.cc | 4488 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/ |
D | assembler_riscv64.cc | 7658 } 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()
|