Home
last modified time | relevance | path

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

/art/compiler/optimizing/
Dcode_generator_utils.cc24 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, in CalculateMagicAndShiftForDivRem() argument
27 DCHECK_NE(divisor, 0); in CalculateMagicAndShiftForDivRem()
57 uint64_t abs_d = (divisor >= 0) ? divisor : -divisor; in CalculateMagicAndShiftForDivRem()
58 uint64_t sign_bit = is_long ? static_cast<uint64_t>(divisor) >> 63 : in CalculateMagicAndShiftForDivRem()
59 static_cast<uint32_t>(divisor) >> 31; in CalculateMagicAndShiftForDivRem()
89 *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.cc1270 static constexpr bool CanDivideByReciprocalMultiplyFloat(int32_t divisor) { in CanDivideByReciprocalMultiplyFloat() argument
1272 return ((divisor & 0x7fffff) == 0); in CanDivideByReciprocalMultiplyFloat()
1276 static constexpr bool CanDivideByReciprocalMultiplyDouble(int64_t divisor) { in CanDivideByReciprocalMultiplyDouble() argument
1278 return ((divisor & ((UINT64_C(1) << 52) - 1)) == 0); in CanDivideByReciprocalMultiplyDouble()
Dcode_generator_mips64.cc3310 GpuRegister divisor = second.AsRegister<GpuRegister>(); in GenerateDivRemIntegral() local
3313 __ DivR6(out, dividend, divisor); in GenerateDivRemIntegral()
3315 __ Ddiv(out, dividend, divisor); in GenerateDivRemIntegral()
3318 __ ModR6(out, dividend, divisor); in GenerateDivRemIntegral()
3320 __ Dmod(out, dividend, divisor); in GenerateDivRemIntegral()
3392 int64_t divisor = codegen_->GetInt64ValueOf(value.GetConstant()->AsConstant()); in VisitDivZeroCheck() local
3393 if (divisor == 0) { in VisitDivZeroCheck()
Dcode_generator_arm64.cc3465 Register divisor = InputRegisterAt(instruction, 1); in GenerateDivRemIntegral() local
3467 __ Sdiv(out, dividend, divisor); in GenerateDivRemIntegral()
3471 __ Sdiv(temp, dividend, divisor); in GenerateDivRemIntegral()
3472 __ Msub(out, temp, divisor, dividend); in GenerateDivRemIntegral()
3537 int64_t divisor = Int64ConstantFrom(value); in VisitDivZeroCheck() local
3538 if (divisor == 0) { in VisitDivZeroCheck()
Dcode_generator_mips.cc3698 Register divisor = second.AsRegister<Register>(); in GenerateDivRemIntegral() local
3702 __ DivR6(out, dividend, divisor); in GenerateDivRemIntegral()
3704 __ DivR2(out, dividend, divisor); in GenerateDivRemIntegral()
3708 __ ModR6(out, dividend, divisor); in GenerateDivRemIntegral()
3710 __ ModR2(out, dividend, divisor); in GenerateDivRemIntegral()
/art/runtime/interpreter/
Dinterpreter_common.h328 int32_t dividend, int32_t divisor) in DoIntDivide() argument
331 if (UNLIKELY(divisor == 0)) { in DoIntDivide()
335 if (UNLIKELY(dividend == kMinInt && divisor == -1)) { in DoIntDivide()
338 shadow_frame.SetVReg(result_reg, dividend / divisor); in DoIntDivide()
346 int32_t dividend, int32_t divisor) in DoIntRemainder() argument
349 if (UNLIKELY(divisor == 0)) { in DoIntRemainder()
353 if (UNLIKELY(dividend == kMinInt && divisor == -1)) { in DoIntRemainder()
356 shadow_frame.SetVReg(result_reg, dividend % divisor); in DoIntRemainder()
366 int64_t divisor) in DoLongDivide() argument
369 if (UNLIKELY(divisor == 0)) { in DoLongDivide()
[all …]
/art/runtime/base/
Dtime_utils.cc80 uint64_t divisor = GetNsToTimeUnitDivisor(time_unit); in FormatDuration() local
95 const uint64_t whole_part = nano_duration / divisor; in FormatDuration()
96 uint64_t fractional_part = nano_duration % divisor; in FormatDuration()
106 while (avail_digits > 1 && fractional_part * multiplier < divisor) { in FormatDuration()
Dtiming_logger.cc206 uint64_t divisor = GetNsToTimeUnitDivisor(tu); in Dump() local
207 uint64_t mod_fraction = divisor >= 1000 ? divisor / 1000 : 1; in Dump()
/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