Home
last modified time | relevance | path

Searched refs:divisor (Results 1 – 9 of 9) sorted by relevance

/art/compiler/optimizing/
Dcode_generator_utils.cc25 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, in CalculateMagicAndShiftForDivRem() argument
28 DCHECK_NE(divisor, 0); in CalculateMagicAndShiftForDivRem()
58 uint64_t abs_d = (divisor >= 0) ? divisor : -divisor; in CalculateMagicAndShiftForDivRem()
59 uint64_t sign_bit = is_long ? static_cast<uint64_t>(divisor) >> 63 : in CalculateMagicAndShiftForDivRem()
60 static_cast<uint32_t>(divisor) >> 31; in CalculateMagicAndShiftForDivRem()
90 *magic = (divisor > 0) ? (quotient2 + 1) : (-quotient2 - 1); in CalculateMagicAndShiftForDivRem()
Dcode_generator_utils.h30 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, int64_t* magic, int* shift);
Dinstruction_simplifier.cc1641 static constexpr bool CanDivideByReciprocalMultiplyFloat(int32_t divisor) { in CanDivideByReciprocalMultiplyFloat() argument
1643 return ((divisor & 0x7fffff) == 0); in CanDivideByReciprocalMultiplyFloat()
1647 static constexpr bool CanDivideByReciprocalMultiplyDouble(int64_t divisor) { in CanDivideByReciprocalMultiplyDouble() argument
1649 return ((divisor & ((UINT64_C(1) << 52) - 1)) == 0); in CanDivideByReciprocalMultiplyDouble()
1711 HInstruction* divisor, in FindDivWithInputsInBasicBlock() argument
1715 if (user->GetBlock() == basic_block && user->IsDiv() && user->InputAt(1) == divisor) { in FindDivWithInputsInBasicBlock()
1738 HInstruction* divisor = rem->GetRight(); in TryToReuseDiv() local
1740 if (divisor->IsConstant()) { in TryToReuseDiv()
1750 HInstruction* quotient = FindDivWithInputsInBasicBlock(dividend, divisor, basic_block); in TryToReuseDiv()
1759 HInstruction* mul = new (allocator) HMul(type, quotient, divisor); in TryToReuseDiv()
Dcode_generator_arm64.cc3111 static inline bool NeedToAddDividend(int64_t magic_number, int64_t divisor) { in NeedToAddDividend() argument
3112 return divisor > 0 && magic_number < 0; in NeedToAddDividend()
3116 static inline bool NeedToSubDividend(int64_t magic_number, int64_t divisor) { in NeedToSubDividend() argument
3117 return divisor < 0 && magic_number > 0; in NeedToSubDividend()
3140 int64_t divisor, in GenerateResultRemWithAnyConstant() argument
3143 __ Mov(temp_imm, divisor); in GenerateResultRemWithAnyConstant()
3300 Register divisor = InputRegisterAt(instruction, 1); in GenerateIntDiv() local
3301 __ Sdiv(out, dividend, divisor); in GenerateIntDiv()
3365 int64_t divisor = Int64FromLocation(value); in VisitDivZeroCheck() local
3366 if (divisor == 0) { in VisitDivZeroCheck()
[all …]
Dcode_generator_arm64.h375 int64_t divisor,
/art/libartbase/base/
Dtime_utils.cc96 uint64_t divisor = GetNsToTimeUnitDivisor(time_unit); in FormatDuration() local
111 const uint64_t whole_part = nano_duration / divisor; in FormatDuration()
112 uint64_t fractional_part = nano_duration % divisor; in FormatDuration()
122 while (avail_digits > 1 && fractional_part * multiplier < divisor) { in FormatDuration()
/art/runtime/interpreter/
Dinterpreter_common.h814 int32_t dividend, int32_t divisor) in DoIntDivide() argument
817 if (UNLIKELY(divisor == 0)) { in DoIntDivide()
821 if (UNLIKELY(dividend == kMinInt && divisor == -1)) { in DoIntDivide()
824 shadow_frame.SetVReg(result_reg, dividend / divisor); in DoIntDivide()
832 int32_t dividend, int32_t divisor) in DoIntRemainder() argument
835 if (UNLIKELY(divisor == 0)) { in DoIntRemainder()
839 if (UNLIKELY(dividend == kMinInt && divisor == -1)) { in DoIntRemainder()
842 shadow_frame.SetVReg(result_reg, dividend % divisor); in DoIntRemainder()
852 int64_t divisor) in DoLongDivide() argument
855 if (UNLIKELY(divisor == 0)) { in DoLongDivide()
[all …]
/art/test/435-try-finally-without-catch/
Dinfo.txt8 divisor is non-null, as it wouldn't be used. However, dx is not
9 that clever regarding exception handling: if the divisor is known to
/art/runtime/base/
Dtiming_logger.cc210 uint64_t divisor = GetNsToTimeUnitDivisor(tu); in Dump() local
211 uint64_t mod_fraction = divisor >= 1000 ? divisor / 1000 : 1; in Dump()