Home
last modified time | relevance | path

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

12345678

/external/llvm/test/CodeGen/X86/
Dfast-isel-divrem.ll4 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 …]
Dfast-isel-divrem-x86-64.ll3 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
Ddiv8.ll6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp {
9 %divisor.addr = alloca i8, align 1
12 store i8 %divisor, i8* %divisor.addr, align 1
14 %tmp1 = load i8, i8* %divisor.addr, align 1
/external/v8/test/mjsunit/compiler/
Ddivision-by-constant.js32 function ConstructDiv(divisor) { argument
33 return "return ((dividend | 0) / ((" + divisor + ") | 0)) | 0";
43 function ConstructMod(divisor) { argument
44 return "return ((dividend | 0) % ((" + divisor + ") | 0)) | 0";
54 function ConstructFlooringDiv(divisor) { argument
55 return "return Math.floor(dividend / (" + divisor + ")) | 0";
104 function TestDivisionLike(ref, construct, values, divisor) { argument
106 var OptFun = new Function("dividend", construct(divisor));
117 if (dividend === -2147483648 && divisor === -1) return;
118 assertEquals(ref(dividend, divisor), OptFun(dividend));
[all …]
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLongs.java182 public static long divide(long dividend, long divisor) { in divide() argument
183 if (divisor < 0) { // i.e., divisor >= 2^63: in divide()
184 if (compare(dividend, divisor) < 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()
204 return quotient + (compare(rem, divisor) >= 0 ? 1 : 0); in divide()
216 public static long remainder(long dividend, long divisor) { in remainder() argument
217 if (divisor < 0) { // i.e., divisor >= 2^63: in remainder()
218 if (compare(dividend, divisor) < 0) { in remainder()
[all …]
DUnsignedInts.java180 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/
Ddiv-mod.js44 function run_tests_for(divisor) { argument
45 print("(function(left) { return left / " + divisor + "; })");
46 var div_func = this.eval("(function(left) { return left / " + divisor + "; })");
47 var mod_func = this.eval("(function(left) { return left % " + divisor + "; })");
50 divmod(div_func, mod_func, 0, divisor);
51 divmod(div_func, mod_func, 1 / 0, divisor);
54 divmod(div_func, mod_func, Math.pow(2, exp), divisor);
55 divmod(div_func, mod_func, 0.9999999 * Math.pow(2, exp), divisor);
56 divmod(div_func, mod_func, 1.0000001 * Math.pow(2, exp), divisor);
60 divmod(div_func, mod_func, 1 << exp, divisor);
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFSubstitution.java643 double divisor; field in MultiplierSubstitution
660 double divisor, in MultiplierSubstitution() argument
669 this.divisor = divisor; in MultiplierSubstitution()
671 if (divisor == 0) { // this will cause recursion in MultiplierSubstitution()
683 divisor = Math.pow(radix, exponent); in setDivisor()
685 if (divisor == 0) { in setDivisor()
703 return divisor == that2.divisor; in equals()
719 return (long)Math.floor(number / divisor); in transformNumber()
733 return number / divisor; in transformNumber()
735 return Math.floor(number / divisor); in transformNumber()
[all …]
DCompactDecimalFormat.java61 private final long[] divisor; field in CompactDecimalFormat
121 this.divisor = data.divisors; in CompactDecimalFormat()
164 … long[] divisor, Map<String,String[][]> pluralAffixes, Map<String, String[]> currencyAffixes, in CompactDecimalFormat() argument
168 this.units = otherPluralVariant(pluralAffixes, divisor, debugCreationErrors); in CompactDecimalFormat()
172 this.divisor = divisor.clone(); in CompactDecimalFormat()
208 && Arrays.equals(divisor, other.divisor) in equals()
331 number /= divisor[base]; in toAmount()
356 long[] divisor, Collection<String> debugCreationErrors) { in otherPluralVariant() argument
359 if (divisor.length < CompactDecimalDataCache.MAX_DIGITS) { in otherPluralVariant()
363 for (int i = 0; i < divisor.length; ++i) { in otherPluralVariant()
[all …]
/external/skia/tools/timer/
DTimerData.cpp111 int divisor = numTimings * itersPerTiming; in getResult() local
112 wallStr.appendf(doubleFormat, wallSum / divisor); in getResult()
113 truncWallStr.appendf(doubleFormat, truncWallSum / divisor); in getResult()
114 cpuStr.appendf(doubleFormat, cpuSum / divisor); in getResult()
115 truncCpuStr.appendf(doubleFormat, truncCpuSum / divisor); in getResult()
116 gpuStr.appendf(doubleFormat, gpuSum / divisor); in getResult()
196 int divisor = numTimings * itersPerTiming; in getJSON() local
197 wallNode.append(wallSum / divisor); in getJSON()
198 truncWall.append(truncWallSum / divisor); in getJSON()
199 cpuNode.append(cpuSum / divisor); in getJSON()
[all …]
/external/compiler-rt/test/builtins/Unit/
Dmulxc3_test.c58 long double _Complex divisor; in test__mulxc3() local
62 __real__ divisor = c; in test__mulxc3() local
63 __imag__ divisor = d; in test__mulxc3() local
68 switch (classify(divisor)) in test__mulxc3()
93 switch (classify(divisor)) in test__mulxc3()
120 switch (classify(divisor)) in test__mulxc3()
145 switch (classify(divisor)) in test__mulxc3()
170 switch (classify(divisor)) in test__mulxc3()
Ddivdc3_test.c55 double _Complex divisor; in test__divdc3() local
59 __real__ divisor = c; in test__divdc3() local
60 __imag__ divisor = d; in test__divdc3() local
65 switch (classify(divisor)) in test__divdc3()
90 switch (classify(divisor)) in test__divdc3()
121 switch (classify(divisor)) in test__divdc3()
146 switch (classify(divisor)) in test__divdc3()
171 switch (classify(divisor)) in test__divdc3()
Ddivsc3_test.c55 float _Complex divisor; in test__divsc3() local
59 __real__ divisor = c; in test__divsc3() local
60 __imag__ divisor = d; in test__divsc3() local
65 switch (classify(divisor)) in test__divsc3()
90 switch (classify(divisor)) in test__divsc3()
121 switch (classify(divisor)) in test__divsc3()
146 switch (classify(divisor)) in test__divsc3()
171 switch (classify(divisor)) in test__divsc3()
Dmultc3_test.c59 long double _Complex divisor; in test__multc3() local
63 __real__ divisor = c; in test__multc3() local
64 __imag__ divisor = d; in test__multc3() local
69 switch (classify(divisor)) in test__multc3()
94 switch (classify(divisor)) in test__multc3()
121 switch (classify(divisor)) in test__multc3()
146 switch (classify(divisor)) in test__multc3()
171 switch (classify(divisor)) in test__multc3()
Dmulsc3_test.c55 float _Complex divisor; in test__mulsc3() local
59 __real__ divisor = c; in test__mulsc3() local
60 __imag__ divisor = d; in test__mulsc3() local
65 switch (classify(divisor)) in test__mulsc3()
90 switch (classify(divisor)) in test__mulsc3()
121 switch (classify(divisor)) in test__mulsc3()
146 switch (classify(divisor)) in test__mulsc3()
171 switch (classify(divisor)) in test__mulsc3()
Ddivxc3_test.c58 long double _Complex divisor; in test__divxc3() local
62 __real__ divisor = c; in test__divxc3() local
63 __imag__ divisor = d; in test__divxc3() local
68 switch (classify(divisor)) in test__divxc3()
93 switch (classify(divisor)) in test__divxc3()
124 switch (classify(divisor)) in test__divxc3()
149 switch (classify(divisor)) in test__divxc3()
174 switch (classify(divisor)) in test__divxc3()
Ddivtc3_test.c60 long double _Complex divisor; in test__divtc3() local
64 __real__ divisor = c; in test__divtc3() local
65 __imag__ divisor = d; in test__divtc3() local
70 switch (classify(divisor)) in test__divtc3()
95 switch (classify(divisor)) in test__divtc3()
126 switch (classify(divisor)) in test__divtc3()
151 switch (classify(divisor)) in test__divtc3()
176 switch (classify(divisor)) in test__divtc3()
Dmuldc3_test.c55 double _Complex divisor; in test__muldc3() local
59 __real__ divisor = c; in test__muldc3() local
60 __imag__ divisor = d; in test__muldc3() local
65 switch (classify(divisor)) in test__muldc3()
90 switch (classify(divisor)) in test__muldc3()
117 switch (classify(divisor)) in test__muldc3()
142 switch (classify(divisor)) in test__muldc3()
167 switch (classify(divisor)) in test__muldc3()
/external/v8/src/
Dfast-dtoa.cc400 uint32_t divisor; in DigitGen() local
403 &divisor, &divisor_exponent); in DigitGen()
411 int digit = integrals / divisor; in DigitGen()
414 integrals %= divisor; in DigitGen()
427 static_cast<uint64_t>(divisor) << -one.e(), unit); in DigitGen()
429 divisor /= 10; in DigitGen()
508 uint32_t divisor; in DigitGenCounted() local
511 &divisor, &divisor_exponent); in DigitGenCounted()
520 int digit = integrals / divisor; in DigitGenCounted()
524 integrals %= divisor; in DigitGenCounted()
[all …]
Dfixed-dtoa.cc318 uint64_t divisor = kFive17; in FastFixedDtoa() local
335 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
336 remainder = (dividend % divisor) << divisor_power; in FastFixedDtoa()
338 divisor <<= divisor_power - exponent; in FastFixedDtoa()
339 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
340 remainder = (dividend % divisor) << exponent; in FastFixedDtoa()
/external/icu/icu4c/source/i18n/
Dnfsubs.cpp70 double divisor; member in MultiplierSubstitution
80 : NFSubstitution(_pos, _ruleSet, formatter, description, status), divisor(_divisor) in MultiplierSubstitution()
82 ldivisor = util64_fromDouble(divisor); in MultiplierSubstitution()
83 if (divisor == 0) { in MultiplierSubstitution()
90 divisor = uprv_pow(radix, exponent); in setDivisor()
91 ldivisor = util64_fromDouble(divisor); in setDivisor()
93 if(divisor == 0) { in setDivisor()
106 return uprv_floor(number / divisor); in transformNumber()
108 return number/divisor; in transformNumber()
113 return newRuleValue * divisor; in composeRuleValue()
[all …]
Dgregoimp.cpp40 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument
43 U_ASSERT(divisor > 0); in floorDivide()
44 double quotient = floorDivide(dividend, divisor); in floorDivide()
45 remainder = dividend - (quotient * divisor); in floorDivide()
49 if (remainder < 0 || remainder >= divisor) { in floorDivide()
67 remainder = dividend - (quotient * divisor); in floorDivide()
70 U_ASSERT(0 <= remainder && remainder < divisor); in floorDivide()
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfp.java1578 public Dfp divide(Dfp divisor) { in divide() argument
1591 if (field.getRadixDigits() != divisor.field.getRadixDigits()) { in divide()
1595 return dotrap(DfpField.FLAG_INVALID, DIVIDE_TRAP, divisor, result); in divide()
1601 if (nans != FINITE || divisor.nans != FINITE) { in divide()
1606 if (divisor.isNaN()) { in divide()
1607 return divisor; in divide()
1610 if (nans == INFINITE && divisor.nans == FINITE) { in divide()
1612 result.sign = (byte) (sign * divisor.sign); in divide()
1616 if (divisor.nans == INFINITE && nans == FINITE) { in divide()
1618 result.sign = (byte) (sign * divisor.sign); in divide()
[all …]
/external/mesa3d/src/glx/apple/
Dglx_empty.c45 glXWaitVideoSyncSGI(int divisor, int remainder, unsigned int *count) in glXWaitVideoSyncSGI() argument
102 int64_t target_msc, int64_t divisor, int64_t remainder) in glXSwapBuffersMscOML() argument
107 (void) divisor; in glXSwapBuffersMscOML()
115 int64_t target_msc, int64_t divisor, in glXWaitForMscOML() argument
122 (void) divisor; in glXWaitForMscOML()
/external/boringssl/src/crypto/bn/
Ddiv.c115 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, in BN_div() argument
127 (divisor->top > 0 && divisor->d[divisor->top - 1] == 0)) { in BN_div()
133 (divisor->flags & BN_FLG_CONSTTIME) != 0) { in BN_div()
137 if (BN_is_zero(divisor)) { in BN_div()
142 if (!no_branch && BN_ucmp(num, divisor) < 0) { in BN_div()
168 norm_shift = BN_BITS2 - ((BN_num_bits(divisor)) % BN_BITS2); in BN_div()
169 if (!(BN_lshift(sdiv, divisor, norm_shift))) { in BN_div()
222 res->neg = (num->neg ^ divisor->neg); in BN_div()

12345678