/external/llvm/test/CodeGen/X86/ |
D | fast-isel-divrem.ll | 4 define i8 @test_sdiv8(i8 %dividend, i8 %divisor) nounwind { 6 %result = sdiv i8 %dividend, %divisor 14 define i8 @test_srem8(i8 %dividend, i8 %divisor) nounwind { 16 %result = srem i8 %dividend, %divisor 24 define i8 @test_udiv8(i8 %dividend, i8 %divisor) nounwind { 26 %result = udiv i8 %dividend, %divisor 34 define i8 @test_urem8(i8 %dividend, i8 %divisor) nounwind { 36 %result = urem i8 %dividend, %divisor 44 define i16 @test_sdiv16(i16 %dividend, i16 %divisor) nounwind { 46 %result = sdiv i16 %dividend, %divisor [all …]
|
D | fast-isel-divrem-x86-64.ll | 3 define i64 @test_sdiv64(i64 %dividend, i64 %divisor) nounwind { 5 %result = sdiv i64 %dividend, %divisor 13 define i64 @test_srem64(i64 %dividend, i64 %divisor) nounwind { 15 %result = srem i64 %dividend, %divisor 23 define i64 @test_udiv64(i64 %dividend, i64 %divisor) nounwind { 25 %result = udiv i64 %dividend, %divisor 33 define i64 @test_urem64(i64 %dividend, i64 %divisor) nounwind { 35 %result = urem i64 %dividend, %divisor
|
D | div8.ll | 6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp { 8 %dividend.addr = alloca i8, align 2 11 store i8 %dividend, i8* %dividend.addr, align 2 13 %tmp = load i8, i8* %dividend.addr, align 2
|
/external/guava/guava/src/com/google/common/primitives/ |
D | UnsignedLongs.java | 182 public static long divide(long dividend, long divisor) { in divide() argument 184 if (compare(dividend, divisor) < 0) { in divide() 192 if (dividend >= 0) { in divide() 193 return dividend / divisor; in divide() 202 long quotient = ((dividend >>> 1) / divisor) << 1; in divide() 203 long rem = dividend - quotient * divisor; in divide() 216 public static long remainder(long dividend, long divisor) { in remainder() argument 218 if (compare(dividend, divisor) < 0) { in remainder() 219 return dividend; // dividend < divisor in remainder() 221 return dividend - divisor; // dividend >= divisor in remainder() [all …]
|
D | UnsignedInts.java | 180 public static int divide(int dividend, int divisor) { in divide() argument 181 return (int) (toLong(dividend) / toLong(divisor)); in divide() 192 public static int remainder(int dividend, int divisor) { in remainder() argument 193 return (int) (toLong(dividend) % toLong(divisor)); in remainder()
|
/external/v8/test/mjsunit/compiler/ |
D | division-by-constant.js | 115 values.forEach(function(dividend) { argument 117 if (dividend === -2147483648 && divisor === -1) return; 118 assertEquals(ref(dividend, divisor), OptFun(dividend));
|
/external/v8/test/mjsunit/ |
D | div-mod.js | 95 function compute_mod(dividend, divisor) { argument 98 if (isNaN(dividend) || isNaN(divisor) || divisor == 0) { return NaN; } 100 if (dividend < 0) { dividend = -dividend; sign = -1; } 101 if (dividend == Infinity) { return NaN; } 103 if (divisor == Infinity) { return sign * dividend; } 112 return sign * rec_mod(dividend, divisor);
|
/external/v8/src/ |
D | fixed-dtoa.cc | 320 uint64_t dividend = significand; in FastFixedDtoa() local 334 dividend <<= exponent - divisor_power; in FastFixedDtoa() 335 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa() 336 remainder = (dividend % divisor) << divisor_power; in FastFixedDtoa() 339 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa() 340 remainder = (dividend % divisor) << exponent; in FastFixedDtoa()
|
/external/compiler-rt/test/builtins/Unit/ |
D | mulxc3_test.c | 57 long double _Complex dividend; in test__mulxc3() local 60 __real__ dividend = a; in test__mulxc3() local 61 __imag__ dividend = b; in test__mulxc3() local 65 switch (classify(dividend)) in test__mulxc3()
|
D | divdc3_test.c | 54 double _Complex dividend; in test__divdc3() local 57 __real__ dividend = a; in test__divdc3() local 58 __imag__ dividend = b; in test__divdc3() local 62 switch (classify(dividend)) in test__divdc3()
|
D | divsc3_test.c | 54 float _Complex dividend; in test__divsc3() local 57 __real__ dividend = a; in test__divsc3() local 58 __imag__ dividend = b; in test__divsc3() local 62 switch (classify(dividend)) in test__divsc3()
|
D | multc3_test.c | 58 long double _Complex dividend; in test__multc3() local 61 __real__ dividend = a; in test__multc3() local 62 __imag__ dividend = b; in test__multc3() local 66 switch (classify(dividend)) in test__multc3()
|
D | mulsc3_test.c | 54 float _Complex dividend; in test__mulsc3() local 57 __real__ dividend = a; in test__mulsc3() local 58 __imag__ dividend = b; in test__mulsc3() local 62 switch (classify(dividend)) in test__mulsc3()
|
D | divxc3_test.c | 57 long double _Complex dividend; in test__divxc3() local 60 __real__ dividend = a; in test__divxc3() local 61 __imag__ dividend = b; in test__divxc3() local 65 switch (classify(dividend)) in test__divxc3()
|
D | divtc3_test.c | 59 long double _Complex dividend; in test__divtc3() local 62 __real__ dividend = a; in test__divtc3() local 63 __imag__ dividend = b; in test__divtc3() local 67 switch (classify(dividend)) in test__divtc3()
|
D | muldc3_test.c | 54 double _Complex dividend; in test__muldc3() local 57 __real__ dividend = a; in test__muldc3() local 58 __imag__ dividend = b; in test__muldc3() local 62 switch (classify(dividend)) in test__muldc3()
|
/external/guava/guava-tests/benchmark/com/google/common/primitives/ |
D | UnsignedLongsBenchmark.java | 126 private static long randomDivisor(long dividend) { in randomDivisor() argument 128 if (dividend == -1) { in randomDivisor() 131 return UnsignedLongs.remainder(r, dividend + 1); in randomDivisor()
|
/external/guava/guava-tests/test/com/google/common/primitives/ |
D | UnsignedIntsTest.java | 150 int dividend = r.nextInt(); in testDivideRemainderEuclideanProperty() local 153 assertTrue(dividend in testDivideRemainderEuclideanProperty() 154 - (divisor * UnsignedInts.divide(dividend, divisor) + UnsignedInts.remainder(dividend, in testDivideRemainderEuclideanProperty()
|
D | UnsignedLongsTest.java | 138 long dividend = r.nextLong(); in testDivideRemainderEuclideanProperty() local 142 dividend - (divisor * UnsignedLongs.divide(dividend, divisor) in testDivideRemainderEuclideanProperty() 143 + UnsignedLongs.remainder(dividend, divisor))); in testDivideRemainderEuclideanProperty()
|
/external/v8/src/arm64/ |
D | lithium-codegen-arm64.cc | 2696 Register dividend = ToRegister32(instr->dividend()); in DoDivByPowerOf2I() local 2700 DCHECK(!result.is(dividend)); in DoDivByPowerOf2I() 2705 DeoptimizeIfZero(dividend, instr); in DoDivByPowerOf2I() 2711 __ Cmp(dividend, 1); in DoDivByPowerOf2I() 2718 __ Tst(dividend, mask); in DoDivByPowerOf2I() 2723 __ Neg(result, dividend); in DoDivByPowerOf2I() 2728 __ Mov(result, dividend); in DoDivByPowerOf2I() 2730 __ Add(result, dividend, Operand(dividend, LSR, 31)); in DoDivByPowerOf2I() 2732 __ Mov(result, Operand(dividend, ASR, 31)); in DoDivByPowerOf2I() 2733 __ Add(result, dividend, Operand(result, LSR, 32 - shift)); in DoDivByPowerOf2I() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 40 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument 44 double quotient = floorDivide(dividend, divisor); in floorDivide() 45 remainder = dividend - (quotient * divisor); in floorDivide() 67 remainder = dividend - (quotient * divisor); in floorDivide()
|
/external/v8/src/ia32/ |
D | lithium-ia32.h | 642 LModByPowerOf2I(LOperand* dividend, int32_t divisor) { in LModByPowerOf2I() argument 643 inputs_[0] = dividend; in LModByPowerOf2I() 647 LOperand* dividend() { return inputs_[0]; } in dividend() function 660 LModByConstI(LOperand* dividend, in LModByConstI() argument 664 inputs_[0] = dividend; in LModByConstI() 670 LOperand* dividend() { return inputs_[0]; } in dividend() function 702 LDivByPowerOf2I(LOperand* dividend, int32_t divisor) { in LDivByPowerOf2I() argument 703 inputs_[0] = dividend; in LDivByPowerOf2I() 707 LOperand* dividend() { return inputs_[0]; } in dividend() function 720 LDivByConstI(LOperand* dividend, in LDivByConstI() argument [all …]
|
/external/v8/src/x87/ |
D | lithium-x87.h | 660 LModByPowerOf2I(LOperand* dividend, int32_t divisor) { in LModByPowerOf2I() argument 661 inputs_[0] = dividend; in LModByPowerOf2I() 665 LOperand* dividend() { return inputs_[0]; } in dividend() function 678 LModByConstI(LOperand* dividend, in LModByConstI() argument 682 inputs_[0] = dividend; in LModByConstI() 688 LOperand* dividend() { return inputs_[0]; } in dividend() function 720 LDivByPowerOf2I(LOperand* dividend, int32_t divisor) { in LDivByPowerOf2I() argument 721 inputs_[0] = dividend; in LDivByPowerOf2I() 725 LOperand* dividend() { return inputs_[0]; } in dividend() function 738 LDivByConstI(LOperand* dividend, in LDivByConstI() argument [all …]
|
/external/v8/src/x64/ |
D | lithium-x64.h | 642 LModByPowerOf2I(LOperand* dividend, int32_t divisor) { in LModByPowerOf2I() argument 643 inputs_[0] = dividend; in LModByPowerOf2I() 647 LOperand* dividend() { return inputs_[0]; } in dividend() function 660 LModByConstI(LOperand* dividend, in LModByConstI() argument 664 inputs_[0] = dividend; in LModByConstI() 670 LOperand* dividend() { return inputs_[0]; } in dividend() function 702 LDivByPowerOf2I(LOperand* dividend, int32_t divisor) { in LDivByPowerOf2I() argument 703 inputs_[0] = dividend; in LDivByPowerOf2I() 707 LOperand* dividend() { return inputs_[0]; } in dividend() function 720 LDivByConstI(LOperand* dividend, in LDivByConstI() argument [all …]
|
/external/v8/src/mips64/ |
D | lithium-mips64.h | 633 LModByPowerOf2I(LOperand* dividend, int32_t divisor) { in LModByPowerOf2I() argument 634 inputs_[0] = dividend; in LModByPowerOf2I() 638 LOperand* dividend() { return inputs_[0]; } in dividend() function 651 LModByConstI(LOperand* dividend, int32_t divisor) { in LModByConstI() argument 652 inputs_[0] = dividend; in LModByConstI() 656 LOperand* dividend() { return inputs_[0]; } in dividend() function 685 LDivByPowerOf2I(LOperand* dividend, int32_t divisor) { in LDivByPowerOf2I() argument 686 inputs_[0] = dividend; in LDivByPowerOf2I() 690 LOperand* dividend() { return inputs_[0]; } in dividend() function 703 LDivByConstI(LOperand* dividend, int32_t divisor) { in LDivByConstI() argument [all …]
|