/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigIntegerSubtractTest.java | 43 BigInteger result = aNumber.subtract(bNumber); in testCase1() 64 BigInteger result = aNumber.subtract(bNumber); in testCase2() 86 BigInteger result = aNumber.subtract(bNumber); in testCase3() 108 BigInteger result = aNumber.subtract(bNumber); in testCase4() 129 BigInteger result = aNumber.subtract(bNumber); in testCase5() 150 BigInteger result = aNumber.subtract(bNumber); in testCase6() 172 BigInteger result = aNumber.subtract(bNumber); in testCase7() 194 BigInteger result = aNumber.subtract(bNumber); in testCase8() 215 BigInteger result = aNumber.subtract(bNumber); in testCase9() 236 BigInteger result = aNumber.subtract(bNumber); in testCase10() [all …]
|
D | BigIntegerHashCodeTest.java | 42 aNumber1.subtract(aNumber2).shiftRight(125); in testSameObject()
|
D | BigDecimalTest.java | 745 BigDecimal result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal() 749 BigDecimal result2 = sub2.subtract(sub1); in test_subtractLjava_math_BigDecimal() 757 result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal() 761 result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal() 766 result = sub1.subtract(sub2); in test_subtractLjava_math_BigDecimal()
|
D | BigIntegerTest.java | 106 .setBit(16).subtract(two))); in test_Constructor$B() 120 .setBit(16).subtract(two))); in test_ConstructorI$B() 123 .setBit(16).subtract(two).negate())); in test_ConstructorI$B() 457 assertTrue(">>1 == /2", f.subtract(one).divide(two).equals(e)); in test_shiftRightI() 932 || r.equals(mod.subtract(i2))); in testDiv() 943 BigInteger k = j.subtract(two); in testDivRanges()
|
D | BigDecimalArithmeticTest.java | 183 BigDecimal result = aNumber.subtract(bNumber); in testSubtractEqualScalePosPos() 201 BigDecimal result = aNumber.subtract(bNumber, mc); in testSubtractMathContextEqualScalePosPos() 218 BigDecimal result = aNumber.subtract(bNumber); in testSubtractEqualScaleNegNeg() 235 BigDecimal result = aNumber.subtract(bNumber); in testSubtractDiffScalePosNeg() 254 BigDecimal result = aNumber.subtract(bNumber, mc); in testSubtractMathContextDiffScalePosNeg() 271 BigDecimal result = aNumber.subtract(bNumber); in testSubtractDiffScaleNegPos() 290 BigDecimal result = aNumber.subtract(bNumber, mc); in testSubtractMathContextDiffScaleNegPos()
|
/libcore/ojluni/src/main/java/java/math/ |
D | SignedMutableBigInteger.java | 89 sign = sign * subtract(addend); in signedAdd() 100 sign = sign * subtract(addend); in signedAdd() 109 sign = sign * subtract(addend); in signedSubtract() 120 sign = sign * subtract(addend); in signedSubtract()
|
D | BigInteger.java | 914 result = result.subtract(ONE); in nextProbablePrime() 1071 v2 = v2.subtract(n); 1079 u2 = u2.subtract(n); 1084 v2 = v2.subtract(n); 1104 BigInteger thisMinusOne = this.subtract(ONE); in passesMillerRabin() 1333 int[] resultMag = (cmp > 0 ? subtract(mag, val.mag) 1334 : subtract(val.mag, mag)); 1354 int[] resultMag = (cmp > 0 ? subtract(mag, Math.abs(val)) : subtract(Math.abs(val), mag)); 1454 private static int[] subtract(long val, int[] little) { in subtract() method 1490 private static int[] subtract(int[] big, long val) { in subtract() method [all …]
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | LargeValueExceptions.java | 72 BigInteger x = ONE.shiftLeft(16*MAX_INTS - 1).subtract(ONE); in squareNoOverflow() 86 BigInteger x = ONE.shiftLeft(16*MAX_INTS).subtract(ONE); in squareIndefiniteOverflowFailure() 107 BigInteger x = ONE.shiftLeft(halfMaxBits).subtract(ONE); in multiplyNoOverflow() 108 BigInteger y = ONE.shiftLeft(halfMaxBits - 1).subtract(ONE); in multiplyNoOverflow() 131 BigInteger x = ONE.shiftLeft((int)(MAX_BITS/2)).subtract(ONE); in multiplyIndefiniteOverflowFailure() 134 BigInteger y = ONE.shiftLeft((int)(MAX_BITS/2)).subtract(ONE); in multiplyIndefiniteOverflowFailure() 189 BigInteger x = ONE.shiftLeft((int)(MAX_BITS / exponent)).subtract(ONE); in powOverflow3()
|
D | PrimeTest.java | 129 BigInteger fourToTheCMinusOne = fourToTheC.subtract(BigInteger.ONE); in checkPrime() 186 BigInteger mp = BigInteger.ONE.shiftLeft(n).subtract(BigInteger.ONE); in checkMersennePrimes()
|
D | BigIntegerTest.java | 282 BigInteger up = n.add(BigInteger.ONE).pow(2).subtract(BigInteger.ONE); in squareRoot() 300 sb.add(p2.subtract(BigInteger.ONE)); in squareRoot() 337 BigInteger up = n.add(BigInteger.ONE).pow(2).subtract(BigInteger.ONE); in squareRootAndRemainder() 340 BigInteger r = up.subtract(n2); in squareRootAndRemainder() 365 baz = baz.subtract(x); in arithmetic() 384 baz[0] = baz[0].subtract(x); in arithmetic() 626 ? y[0].subtract(BigInteger.ONE) in shift() 757 BigInteger exp = m.subtract(BigInteger.ONE); in modExp2() 818 p1 = p1.subtract(BigInteger.ONE); in prime() 843 BigInteger[] result = f1.subtract(ONE).divideAndRemainder(SIX); in prime() [all …]
|
D | OperatorNpeTests.java | 69 result = bd.subtract(null); in testOperatorsNpe()
|
D | PrimitiveConversionTests.java | 57 for (BigInteger y : Arrays.asList(x, x.add(ONE), x.subtract(ONE))) {
|
D | TestValueExact.java | 49 BigInteger.valueOf(Long.MIN_VALUE).subtract(BigInteger.ONE), in testLongValueExact()
|
/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | ZeroScalingTests.java | 145 BigDecimal result = zero1.subtract(zero2); in subtractTests() 152 result = zero1.subtract(zero2, MathContext.UNLIMITED); in subtractTests() 158 result = zero1.subtract(zero2, longEnough); in subtractTests() 181 BigDecimal result = element.subtract(zero, mc); in subtractTests() 188 result = zero.subtract(element, mc); in subtractTests() 195 result = element.negate().subtract(zero, mc); in subtractTests() 202 result = zero.subtract(element.negate(), mc); in subtractTests()
|
D | SquareRootTests.java | 578 if (bd.subtract(square(result)).compareTo(ZERO) != 0) { 632 BigDecimal neighborDown = result.subtract(ulp); 666 BigDecimal err = square(result).subtract(input).abs(); 667 BigDecimal errUp = square(neighborUp).subtract(input); 668 BigDecimal errDown = input.subtract(square(neighborDown));
|
/libcore/ojluni/src/test/java/lang/Double/ |
D | ParseDoubleTest.java | 109 … l = new BigDecimal(na).subtract(new BigDecimal(Math.ulp(Math.nextUp(-na))).multiply(HALF)); in check() 678 BigDecimal lowerBound = d_BD.subtract(ulp_BD.divide(TWO)); in testSubnormalPowers() 715 … BigDecimal lowerBound = d_BD.subtract(new BigDecimal(Math.ulp(Math.nextUp(-d))).multiply(HALF)); in testPowers()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigDecimalTest.java | 93 assertEquals(0, a.subtract(b).signum()); in testPrecisionFromString() 260 assertEquals("a - (-b)", expectedSumAsString, bigA.subtract(bigMinusB).toString()); in assertSum() 261 assertEquals("b - (-a)", expectedSumAsString, bigB.subtract(bigMinusA).toString()); in assertSum() 336 assertEquals(bigHalfValue, bigValue.subtract(bigHalfValue)); in checkCommonOperations()
|
D | OldBigDecimalArithmeticTest.java | 61 a.round(mc).subtract(b.round(mc)).toString()); in testSubtractMathContextNonTrivial() 62 res = a.subtract(b, mc); in testSubtractMathContextNonTrivial() 70 res = a.subtract(b, mc); in testSubtractMathContextNonTrivial()
|
/libcore/ojluni/src/test/java/lang/Float/ |
D | ParseFloatTest.java | 107 … l = new BigDecimal(na).subtract(new BigDecimal(Math.ulp(-Math.nextUp(-na))).multiply(HALF)); in check() 316 … BigDecimal lowerBound = f_BD.subtract(new BigDecimal(Math.ulp(-Math.nextUp(-f))).multiply(HALF)); in testPowers()
|
/libcore/ojluni/src/test/java/lang/Long/ |
D | Unsigned.java | 253 TWO.pow(64).subtract(BigInteger.ONE) in testParseUnsignedLong() 320 BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE); in testParseUnsignedLong() 367 TWO.pow(64).subtract(BigInteger.ONE) in testDivideAndRemainder()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | MathTest.java | 147 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)); in testSubtractExactL() 180 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.ONE); in testDecrementExactL()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | ExactArithTests.java | 236 resultBig = xBig.subtract(yBig); in testLongExact() 269 resultBig = xBig.subtract(BigInteger.ONE); in testLongExact()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | DivModTests.java | 261 resultD = xD.subtract(resultD); in testLongFloorMod() 370 resultD = xD.subtract(resultD); in testLongIntFloorMod() 740 resultD = xD.subtract(resultD); in testLongCeilMod() 849 resultD = xD.subtract(resultD); in testLongIntCeilMod()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | ObjectIdentifier.java | 375 BigInteger second = big.subtract(BigInteger.valueOf(80)); in toIntArray() 442 sb.append(big.subtract(BigInteger.valueOf(80))); in toString()
|
/libcore/luni/src/test/java/libcore/javax/xml/datatype/ |
D | DurationTest.java | 182 i.subtract(j); in testSubtract()
|