Home
last modified time | relevance | path

Searched refs:divide (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpMath.java141 result[0] = a[0].divide(b[0]); in splitDiv()
143 result[1] = result[1].divide(b[0].multiply(b[0]).add(b[0].multiply(b[1]))); in splitDiv()
199 result[0] = base[0].getOne().divide(result[0]); in splitPow()
250 result = base.getOne().divide(result); in pow()
299 fact = fact.divide(i); in expInternal()
337 x = x.divide(pow(a.newInstance(10000), lr)); /* This puts x in the range 0-10000 */ in log()
349 spx[0] = spx[0].divide(spy[0]); in log()
350 spx[1] = spx[1].divide(spy[0]); in log()
354 spx[0] = spx[0].divide(2); in log()
355 spx[1] = spx[1].divide(2); in log()
[all …]
DDfpField.java580 sqr2ReciprocalString = highPrecisionOne.divide(highPrecisionSqr2).toString();
584 sqr3ReciprocalString = highPrecisionOne.divide(highPrecisionSqr3).toString();
621 yk = one.subtract(s).divide(one.add(s));
634 return one.divide(ak);
653 y = y.add(x.divide(f));
729 Dfp x = a.add(new Dfp(a.getField(), -1)).divide(a.add(one));
738 Dfp t = num.divide(den);
/external/llvm/test/MC/ARM/
Ddirective-arch_extension-idiv.s27 @ CHECK-ARMv6: error: instruction requires: divide in ARM
28 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
30 @ CHECK-ARMv6: error: instruction requires: divide in ARM
31 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
44 @ CHECK-ARMv6: error: instruction requires: divide in ARM
45 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
46 @ CHECK-ARMv7: error: instruction requires: divide in ARM
47 @ CHECK-THUMBv7: error: instruction requires: divide in THUMB
49 @ CHECK-ARMv6: error: instruction requires: divide in ARM
50 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
[all …]
Dinvalid-idiv.s12 @ ARM-A15: error: instruction requires: divide in ARM
14 @ ARM-A15: error: instruction requires: divide in ARM
21 @ ARM: error: instruction requires: divide in ARM
23 @ ARM: error: instruction requires: divide in ARM
25 @ THUMB: error: instruction requires: divide in THUMB
27 @ THUMB: error: instruction requires: divide in THUMB
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DBigFraction.java133 num = num.divide(gcd); in BigFraction()
134 den = den.divide(gcd); in BigFraction()
540 return new BigDecimal(numerator).divide(new BigDecimal(denominator)); in bigDecimalValue()
559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode); in bigDecimalValue()
578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode); in bigDecimalValue()
612 public BigFraction divide(final BigInteger bg) { in divide() method in BigFraction
631 public BigFraction divide(final int i) { in divide() method in BigFraction
632 return divide(BigInteger.valueOf(i)); in divide()
647 public BigFraction divide(final long l) { in divide() method in BigFraction
648 return divide(BigInteger.valueOf(l)); in divide()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedLongsTest.java113 assertEquals(2, UnsignedLongs.divide(14, 5)); in testDivide()
114 assertEquals(0, UnsignedLongs.divide(0, 50)); in testDivide()
115 assertEquals(1, UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)); in testDivide()
116 assertEquals(0, UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)); in testDivide()
117 assertEquals(281479271743488L, UnsignedLongs.divide(0xfffffffffffffffeL, 65535)); in testDivide()
118 assertEquals(0x7fffffffffffffffL, UnsignedLongs.divide(0xfffffffffffffffeL, 2)); in testDivide()
119 assertEquals(3689348814741910322L, UnsignedLongs.divide(0xfffffffffffffffeL, 5)); in testDivide()
142 dividend - (divisor * UnsignedLongs.divide(dividend, divisor) in testDivideRemainderEuclideanProperty()
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DUnsignedLongsTest.java110 assertEquals(2, UnsignedLongs.divide(14, 5)); in testDivide()
111 assertEquals(0, UnsignedLongs.divide(0, 50)); in testDivide()
112 assertEquals(1, UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)); in testDivide()
113 assertEquals(0, UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)); in testDivide()
114 assertEquals(281479271743488L, UnsignedLongs.divide(0xfffffffffffffffeL, 65535)); in testDivide()
115 assertEquals(0x7fffffffffffffffL, UnsignedLongs.divide(0xfffffffffffffffeL, 2)); in testDivide()
116 assertEquals(3689348814741910322L, UnsignedLongs.divide(0xfffffffffffffffeL, 5)); in testDivide()
/external/autotest/client/common_lib/perf_expectations/
Dexpectation_checker.py24 def divide(x, y): function
107 ratio = 1 - divide(trace_perf_value, improve)
110 ratio = divide(trace_perf_value, regress) - 1
115 ratio = divide(trace_perf_value, improve) - 1
118 ratio = 1 - divide(trace_perf_value, regress)
/external/skia/experimental/
DSkSetPoly3To3_A.cpp18 static SkScalar divide(SkDScalar numer, SkDScalar denom) { in divide() function
75 matrix->setScaleX(divide(M[0], det)); in SkSetPoly3To3_A()
76 matrix->setSkewX( divide(M[1], det)); in SkSetPoly3To3_A()
77 matrix->setSkewY (divide(M[2], det)); in SkSetPoly3To3_A()
78 matrix->setScaleY(divide(M[3], det)); in SkSetPoly3To3_A()
/external/proguard/src/proguard/evaluation/value/
DDoubleValue.java96 public abstract DoubleValue divide(DoubleValue other); in divide() method in DoubleValue
179 public DoubleValue divide(SpecificDoubleValue other) in divide() method in DoubleValue
181 return divide((DoubleValue)other); in divide()
282 public DoubleValue divide(ParticularDoubleValue other) in divide() method in DoubleValue
284 return divide((SpecificDoubleValue)other); in divide()
DFloatValue.java96 public abstract FloatValue divide(FloatValue other); in divide() method in FloatValue
179 public FloatValue divide(SpecificFloatValue other) in divide() method in FloatValue
181 return divide((FloatValue)other); in divide()
282 public FloatValue divide(ParticularFloatValue other) in divide() method in FloatValue
284 return divide((SpecificFloatValue)other); in divide()
DLongValue.java112 public LongValue divide(LongValue other) in divide() method in LongValue
124 return other.divide(this); in divideOf()
269 public LongValue divide(SpecificLongValue other) in divide() method in LongValue
425 public LongValue divide(ParticularLongValue other) in divide() method in LongValue
427 return divide((SpecificLongValue)other); in divide()
DIntegerValue.java111 public abstract IntegerValue divide(IntegerValue other) in divide() method in IntegerValue
297 public IntegerValue divide(UnknownIntegerValue other) in divide() method in IntegerValue
299 return divide((IntegerValue)other); in divide()
541 public IntegerValue divide(SpecificIntegerValue other) in divide() method in IntegerValue
543 return divide((IntegerValue)other); in divide()
785 public IntegerValue divide(ParticularIntegerValue other) in divide() method in IntegerValue
787 return divide((SpecificIntegerValue)other); in divide()
DSpecificFloatValue.java80 public FloatValue divide(FloatValue other) in divide() method in SpecificFloatValue
87 return other.divide(this); in divideOf()
134 public FloatValue divide(SpecificFloatValue other) in divide() method in SpecificFloatValue
DSpecificDoubleValue.java80 public DoubleValue divide(DoubleValue other) in divide() method in SpecificDoubleValue
87 return other.divide(this); in divideOf()
134 public DoubleValue divide(SpecificDoubleValue other) in divide() method in SpecificDoubleValue
/external/crcalc/tests/src/com/hp/creals/
DSlowCRTest.java54 final static CR HALF_PI = CR.PI.divide(CR.valueOf(2));
111 check(isApprInt(tmp.subtract(x).divide(CR.PI)) in checkTrig()
112 || isApprInt(tmp.add(x).divide(CR.PI)), in checkTrig()
120 check(isApprInt(tmp.subtract(x).divide(CR.PI)) in checkTrig()
121 || isApprInt(tmp.add(x).divide(CR.PI)), in checkTrig()
142 checkEq(x.ln().divide(CR.valueOf(2)), x.sqrt().ln(), in checkExpLn()
165 checkEq(ZERO.acos(), CR.PI.divide(TWO), "acos(0)"); in testSlowTrig()
169 checkEq(ONE.asin(), CR.PI.divide(TWO), "asin(1)"); in testSlowTrig()
170 checkEq(ONE.negate().asin(), CR.PI.divide(TWO).negate(), "asin(-1)"); in testSlowTrig()
DCRTest.java91 check_eq(one.divide(four).shiftLeft(4), four, "divide failed 1"); in testCR()
92 check_eq(two.divide(one.negate()), two.negate(), "divide(neg) failed"); in testCR()
94 check_eq(one.divide(thirteen).multiply(thirteen), one, in testCR()
106 CR half_pi = CR.PI.divide(two); in testCR()
107 CR half = one.divide(two); in testCR()
/external/compiler-rt/lib/ubsan/
Dubsan_checks.inc28 UBSAN_CHECK(IntegerDivideByZero, "integer-divide-by-zero",
29 "integer-divide-by-zero")
30 UBSAN_CHECK(FloatDivideByZero, "float-divide-by-zero", "float-divide-by-zero")
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java152 approxPow = approxPow.divide(BigInteger.TEN); in log10()
274 BigInteger sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1); in sqrtFloor()
280 sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1); in sqrtFloor()
298 public static BigInteger divide(BigInteger p, BigInteger q, RoundingMode mode) { in divide() method in BigIntegerMath
301 return pDec.divide(qDec, 0, mode).toBigIntegerExact(); in divide()
325 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial()
431 .divide(BigInteger.valueOf(denominatorAccum)); in binomial()
444 .divide(BigInteger.valueOf(denominatorAccum)); in binomial()
/external/llvm/test/CodeGen/X86/
Dlegalizedag_vec.ll7 ; legalizing the divide in LegalizeDAG, we scalarize the vector divide and make
8 ; two 64 bit divide library calls which introduces i64 nodes that needs to be
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimal.java1374 …(new Test("div301")).ok=((new android.icu.math.BigDecimal("1")).divide(new android.icu.math.BigDec… in diagdivide()
1375 …(new Test("div302")).ok=((new android.icu.math.BigDecimal("2")).divide(new android.icu.math.BigDec… in diagdivide()
1376 …(new Test("div303")).ok=((new android.icu.math.BigDecimal("2.4")).divide(new android.icu.math.BigD… in diagdivide()
1377 …(new Test("div304")).ok=((new android.icu.math.BigDecimal("2.4")).divide(new android.icu.math.BigD… in diagdivide()
1378 …(new Test("div305")).ok=((new android.icu.math.BigDecimal("-2.4")).divide(new android.icu.math.Big… in diagdivide()
1379 …(new Test("div306")).ok=((new android.icu.math.BigDecimal("-2.4")).divide(new android.icu.math.Big… in diagdivide()
1380 …(new Test("div307")).ok=((new android.icu.math.BigDecimal("2.40")).divide(new android.icu.math.Big… in diagdivide()
1381 …(new Test("div308")).ok=((new android.icu.math.BigDecimal("2.400")).divide(new android.icu.math.Bi… in diagdivide()
1382 …(new Test("div309")).ok=((new android.icu.math.BigDecimal("2.4")).divide(new android.icu.math.BigD… in diagdivide()
1383 …(new Test("div310")).ok=((new android.icu.math.BigDecimal("2.400")).divide(new android.icu.math.Bi… in diagdivide()
[all …]
/external/crcalc/src/com/hp/creals/
DCR.java429 static CR ten_ninths = valueOf(10).divide(valueOf(9));
430 static CR twentyfive_twentyfourths = valueOf(25).divide(valueOf(24));
431 static CR eightyone_eightyeths = valueOf(81).divide(valueOf(80));
560 return CR.valueOf(scaled_result).divide(CR.valueOf(divisor)); in valueOf()
813 public CR divide(CR x) { in divide() method in CR
878 BigInteger halfpi_multiples = divide(PI).get_appr(-1); in cos()
1180 BigInteger result = adj_dividend.divide(abs_scaled_divisor); in approximate()
1226 current_term = current_term.divide(BigInteger.valueOf(n)); in approximate()
1272 current_term = current_term.divide(divisor); in approximate()
1303 BigInteger op_inverse = scaled_1.divide(big_op); in approximate()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DIntMathTest.java121 new BigDecimal(valueOf(p)).divide(new BigDecimal(valueOf(q)), 0, mode).intValue(); in testDivNonZero()
122 assertEquals(p + "/" + q, force32(expected), IntMath.divide(p, q, mode)); in testDivNonZero()
137 assertEquals(p + "/" + q, p, IntMath.divide(p, q, UNNECESSARY) * q); in testDivNonZeroExact()
149 assertEquals(0, IntMath.divide(0, q, mode)); in testZeroDivIsAlwaysZero()
158 IntMath.divide(p, 0, mode); in testDivByZeroAlwaysFails()
344 .divide(BigDecimal.valueOf(2), BigDecimal.ROUND_FLOOR); in computeMeanSafely()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java120 public SimpleBigDecimal divide(SimpleBigDecimal b) in divide() method in SimpleBigDecimal
124 return new SimpleBigDecimal(dividend.divide(b.bigInt), scale); in divide()
127 public SimpleBigDecimal divide(BigInteger b) in divide() method in SimpleBigDecimal
129 return new SimpleBigDecimal(bigInt.divide(b), scale); in divide()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimal.java1370 …(new Test("div301")).ok=((new com.ibm.icu.math.BigDecimal("1")).divide(new com.ibm.icu.math.BigDec… in diagdivide()
1371 …(new Test("div302")).ok=((new com.ibm.icu.math.BigDecimal("2")).divide(new com.ibm.icu.math.BigDec… in diagdivide()
1372 …(new Test("div303")).ok=((new com.ibm.icu.math.BigDecimal("2.4")).divide(new com.ibm.icu.math.BigD… in diagdivide()
1373 …(new Test("div304")).ok=((new com.ibm.icu.math.BigDecimal("2.4")).divide(new com.ibm.icu.math.BigD… in diagdivide()
1374 …(new Test("div305")).ok=((new com.ibm.icu.math.BigDecimal("-2.4")).divide(new com.ibm.icu.math.Big… in diagdivide()
1375 …(new Test("div306")).ok=((new com.ibm.icu.math.BigDecimal("-2.4")).divide(new com.ibm.icu.math.Big… in diagdivide()
1376 …(new Test("div307")).ok=((new com.ibm.icu.math.BigDecimal("2.40")).divide(new com.ibm.icu.math.Big… in diagdivide()
1377 …(new Test("div308")).ok=((new com.ibm.icu.math.BigDecimal("2.400")).divide(new com.ibm.icu.math.Bi… in diagdivide()
1378 …(new Test("div309")).ok=((new com.ibm.icu.math.BigDecimal("2.4")).divide(new com.ibm.icu.math.BigD… in diagdivide()
1379 …(new Test("div310")).ok=((new com.ibm.icu.math.BigDecimal("2.400")).divide(new com.ibm.icu.math.Bi… in diagdivide()
[all …]

12345678910>>...14