/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerMultiplyTest.java | 42 BigInteger result = aNumber.multiply(bNumber); in testCase1() 63 BigInteger result = aNumber.multiply(bNumber); in testCase2() 85 BigInteger result = aNumber.multiply(bNumber); in testCase3() 107 BigInteger result = aNumber.multiply(bNumber); in testCase4() 130 BigInteger result = aNumber.multiply(bNumber); in testCase5() 153 BigInteger result = aNumber.multiply(bNumber); in testCase6() 173 BigInteger result = aNumber.multiply(bNumber); in testCase7() 191 BigInteger result = aNumber.multiply(bNumber); in testCase8() 209 BigInteger result = aNumber.multiply(bNumber); in testCase9() 227 BigInteger result = aNumber.multiply(bNumber); in testCase10() [all …]
|
D | BigIntegerTest.java | 190 bi = BigInteger.valueOf(rand.nextInt(1000000)).multiply( in test_isProbablePrimeI() 198 bi = new BigInteger(70, rand).multiply(new BigInteger(70, rand)); in test_isProbablePrimeI() 355 .multiply(two.pow(40)).equals(twoToTheSeventy)); in test_powI() 372 + " equals " + inv, one.equals(a.multiply(inv).mod( in test_modInverseLjava_math_BigInteger() 393 + " equals " + inv, one.equals(a.multiply(inv).mod( in test_modInverseLjava_math_BigInteger() 494 assertTrue("<<1 == *2", b.multiply(two).equals(a)); in test_shiftLeftI() 501 assertTrue("<<1 == *2 negative", d.multiply(two).equals(c)); in test_shiftLeftI() 513 aZillion.multiply(new BigInteger("3", 10)))); in test_multiplyLjava_math_BigInteger() 515 assertTrue("0*0", zero.multiply(zero).equals(zero)); in test_multiplyLjava_math_BigInteger() 516 assertTrue("0*1", zero.multiply(one).equals(zero)); in test_multiplyLjava_math_BigInteger() [all …]
|
D | OldBigIntegerTest.java | 147 bi = BigInteger.valueOf(rand.nextInt(1000000)).multiply( in test_isProbablePrimeI() 155 bi = new BigInteger(70, rand).multiply(new BigInteger(70, rand)); in test_isProbablePrimeI() 179 BigInteger c = a.multiply(b); in test_isProbablePrimeI() 205 BigInteger wp = a.multiply(b); in largePrimesProduct()
|
D | BigIntegerHashCodeTest.java | 43 aNumber1.multiply(aNumber2).toByteArray(); in testSameObject()
|
D | BigDecimalTest.java | 506 BigDecimal result = multi1.multiply(multi2); in test_multiplyLjava_math_BigDecimal() 512 result = multi1.multiply(multi2); in test_multiplyLjava_math_BigDecimal() 518 result = multi1.multiply(multi2); in test_multiplyLjava_math_BigDecimal() 524 result = multi1.multiply(multi2); in test_multiplyLjava_math_BigDecimal() 529 result = multi1.multiply(multi2); in test_multiplyLjava_math_BigDecimal()
|
D | BigDecimalArithmeticTest.java | 307 BigDecimal result = aNumber.multiply(bNumber); in testMultiplyScalePosPos() 325 BigDecimal result = aNumber.multiply(bNumber, mc); in testMultiplyMathContextScalePosPos() 342 BigDecimal result = aNumber.multiply(bNumber); in testMultiplyEqualScaleNegNeg() 359 BigDecimal result = aNumber.multiply(bNumber); in testMultiplyDiffScalePosNeg() 377 BigDecimal result = aNumber.multiply(bNumber, mc); in testMultiplyMathContextDiffScalePosNeg() 394 BigDecimal result = aNumber.multiply(bNumber); in testMultiplyDiffScaleNegPos() 412 BigDecimal result = aNumber.multiply(bNumber, mc); in testMultiplyMathContextDiffScaleNegPos()
|
D | BigDecimalCompareTest.java | 508 BigDecimal testInstance = BigDecimal.TEN.multiply(new BigDecimal("0.1")); in testApproxPrecision()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigDecimalTest.java | 76 BigDecimal b = a.multiply(BigDecimal.ONE); in testPrecisionFromString() 334 assertEquals(bigValue, bigHalfValue.multiply(two)); in checkCommonOperations() 369 valueOf(a).multiply(valueOf(b)).toString()); in checkMultiply_consistentWithLong() 373 assertEquals(valueOf(expectedResult, 5), valueOf(a, 2).multiply(valueOf(b, 3))); in checkMultiply_consistentWithLong() 379 valueOf(-(1L << 62L), 2).multiply(valueOf(-2, 1)).toString()); in testMultiply_near64BitOverflow_scaled() 383 valueOf(-(1L << 62L), 2).multiply(valueOf(2, 1)).toString()); in testMultiply_near64BitOverflow_scaled() 387 valueOf(-(1L << 62L), -2).multiply(valueOf(-2, 1))); in testMultiply_near64BitOverflow_scaled() 419 BigDecimal result = bigA.multiply(bigB); in bigMultiply() 420 assertEquals("Multiplication should be commutative", result, bigB.multiply(bigA)); in bigMultiply()
|
D | OldBigDecimalArithmeticTest.java | 83 res = a.round(mc).multiply(b.round(mc)); in testMultiplyMathContextNonTrivial() 87 res = a.multiply(b, mc); in testMultiplyMathContextNonTrivial() 346 res = a.multiply(b); in testDivideToIntegralValueMathContextNonTrivial()
|
/libcore/benchmarks/src/benchmarks/ |
D | BigIntegerBenchmark.java | 57 sum = sum.add(big.multiply(big)); in inner() 129 return tmp.multiply(base).divide(scaleBy); in myPow() 132 return tmp.multiply(tmp).divide(scaleBy); in myPow() 167 BigInteger product = odd1.multiply(odd2); in repeatModPow() 195 BigInteger product = odd1.multiply(odd2); in repeatModInverse()
|
D | SmallBigIntegerBenchmark.java | 49 x = x.multiply(BIG_THREE).add(BigInteger.ONE); in main()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 633 public Duration multiply(int factor) { in multiply() method in Duration 634 return multiply(BigDecimal.valueOf(factor)); in multiply() 684 public abstract Duration multiply(final BigDecimal factor); in multiply() method in Duration
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigDecimal.java | 934 intVal = BigInteger.valueOf(5).pow(-exponent).multiply(compactVal); in BigDecimal() 937 intVal = BigInteger.valueOf(2).pow(exponent).multiply(compactVal); in BigDecimal() 1484 public BigDecimal multiply(BigDecimal multiplicand) { in multiply() method in BigDecimal 1488 return multiply(this.intCompact, multiplicand.intCompact, productScale); in multiply() 1490 return multiply(this.intCompact, multiplicand.intVal, productScale); in multiply() 1494 return multiply(multiplicand.intCompact, this.intVal, productScale); in multiply() 1496 return multiply(this.intVal, multiplicand.intVal, productScale); in multiply() 1512 public BigDecimal multiply(BigDecimal multiplicand, MathContext mc) { in multiply() method in BigDecimal 1514 return multiply(multiplicand); in multiply() 1853 BigDecimal product = result.multiply(divisor); in divideToIntegralValue() [all …]
|
D | BigInteger.java | 986 u2 = u.multiply(v).mod(n); 988 v2 = v.square().add(d.multiply(u.square())).mod(n); 1001 v2 = v.add(d.multiply(u)).mod(n); 1496 @NonNull public BigInteger multiply(@NonNull BigInteger val) { in multiply() method 1497 return multiply(val, false); in multiply() 1508 @NonNull private BigInteger multiply(@NonNull BigInteger val, boolean isRecursion) { in multiply() method 1644 @NonNull BigInteger multiply(long v) { in multiply() method 1648 return multiply(BigInteger.valueOf(v)); in multiply() 1745 BigInteger p1 = xh.multiply(yh); // p1 = xh*yh in multiplyKaratsuba() 1746 BigInteger p2 = xl.multiply(yl); // p2 = xl*yl in multiplyKaratsuba() [all …]
|
D | MutableBigInteger.java | 1002 void multiply(MutableBigInteger y, MutableBigInteger z) { in multiply() method in MutableBigInteger 1365 d = new MutableBigInteger(quotient.toBigInteger().multiply(b2)); in divide3n2n() 2013 oddPart.multiply(y1, result); 2015 evenPart.multiply(oddMod, temp1); 2016 temp1.multiply(y2, temp2); 2235 q.multiply(t1, temp); 2255 q.multiply(t0, temp);
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | BigIntegerBenchmark.java | 46 x.multiply(y); in timeRandomMultiplication()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | MultiplicationTests.java | 36 return BigInteger.valueOf(x).multiply(BigInteger.valueOf(y)) in multiplyHighBigInt()
|
D | ExactArithTests.java | 255 resultBig = xBig.multiply(yBig); in testLongExact() 384 resultBig = xBig.multiply(yBig); in testLongIntExact()
|
D | DivModTests.java | 229 resultD = resultD.multiply(yD); in testLongFloorMod() 334 resultD = resultD.multiply(yD); in testLongIntFloorMod()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | MultiplicationTests.java | 59 return BigInteger.valueOf(x).multiply(BigInteger.valueOf(y)) in multiplyHighBigInt()
|
D | ExactArithTests.java | 230 resultBig = xBig.multiply(yBig); in testLongExact() 327 resultBig = xBig.multiply(yBig); in testLongIntExact()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StrictMathTest.java | 119 BigInteger expected = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)); in testMultiplyExactL() 233 return BigInteger.valueOf(x).multiply(BigInteger.valueOf(y)).longValue(); in multiplyFullBigInt()
|
D | MathTest.java | 158 BigInteger expected = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)); in testMultiplyExactL() 305 return BigInteger.valueOf(x).multiply(BigInteger.valueOf(y)).longValue(); in multiplyFullBigInt()
|
/libcore/ojluni/src/main/java/java/time/ |
D | Duration.java | 959 return create(toBigDecimalSeconds().multiply(BigDecimal.valueOf(multiplicand))); in multipliedBy()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 2676 totalBig = totalBig.multiply(BigInteger.TEN).add(BigInteger.valueOf(digit)); in parse() 3068 … BigDecimal valueBD = fraction.multiply(rangeBD).setScale(0, RoundingMode.FLOOR).add(minBD); in convertFromFraction()
|