Home
last modified time | relevance | path

Searched refs:subtract (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/external/python/cpython2/Lib/test/decimaltestdata/
DdqSubtract.decTest32 dqsub001 subtract 0 0 -> '0'
33 dqsub002 subtract 1 1 -> '0'
34 dqsub003 subtract 1 2 -> '-1'
35 dqsub004 subtract 2 1 -> '1'
36 dqsub005 subtract 2 2 -> '0'
37 dqsub006 subtract 3 2 -> '1'
38 dqsub007 subtract 2 3 -> '-1'
40 dqsub011 subtract -0 0 -> '-0'
41 dqsub012 subtract -1 1 -> '-2'
42 dqsub013 subtract -1 2 -> '-3'
[all …]
DddSubtract.decTest32 ddsub001 subtract 0 0 -> '0'
33 ddsub002 subtract 1 1 -> '0'
34 ddsub003 subtract 1 2 -> '-1'
35 ddsub004 subtract 2 1 -> '1'
36 ddsub005 subtract 2 2 -> '0'
37 ddsub006 subtract 3 2 -> '1'
38 ddsub007 subtract 2 3 -> '-1'
40 ddsub011 subtract -0 0 -> '-0'
41 ddsub012 subtract -1 1 -> '-2'
42 ddsub013 subtract -1 2 -> '-3'
[all …]
Dsubtract.decTest2 -- subtract.decTest -- decimal subtraction --
29 subx001 subtract 0 0 -> '0'
30 subx002 subtract 1 1 -> '0'
31 subx003 subtract 1 2 -> '-1'
32 subx004 subtract 2 1 -> '1'
33 subx005 subtract 2 2 -> '0'
34 subx006 subtract 3 2 -> '1'
35 subx007 subtract 2 3 -> '-1'
37 subx011 subtract -0 0 -> '-0'
38 subx012 subtract -1 1 -> '-2'
[all …]
Drandoms.decTest37 xsub001 subtract 905.67402 -202896611.E-780472620 -> 905.674020 Inexact Rounded
45 xsub002 subtract 3915134.7 -597164907. -> 601080042 Inexact Rounded
53 xsub003 subtract 309759261 62663.487 -> 309696598 Inexact Rounded
61 xsub004 subtract 3.93591888E-236595626 7242375.00 -> -7242375.00 Inexact Rounded
69 xsub005 subtract 323902.714 -608669.607E-657060568 -> 323902.714 Inexact Rounded
77 xsub006 subtract 5.11970092 -8807.22036 -> 8812.34006 Inexact Rounded
85 xsub007 subtract -7.99874516 4561.83758 -> -4569.83633 Inexact Rounded
93 xsub008 subtract 297802878 -927206.324 -> 298730084 Inexact Rounded
101 xsub009 subtract -766.651824 31300.3619 -> -32067.0137 Inexact Rounded
109 xsub010 subtract -56746.8689E+934981942 471002521. -> -5.67468689E+934981946 Inexact Rounded
[all …]
DrandomBound32.decTest39 subx3001 subtract 4953734675913.065314738743322579 0218.932010396534371704930714860E+797 -> -2.1893…
47 subx3002 subtract 9641.684323386955881595490347910E-844 -78864532047.12287484430980636798E+934 -> 7…
55 subx3003 subtract -1.028048571628326871054964307774E+529 49200008645699.35577937582714739 -> -1.028…
63 subx3004 subtract 479084.8561808930525417735205519 084157571054.2691784660983989931 -> -84157091969…
71 subx3005 subtract -0363750788.573782205664349562931 -3172.080934464133691909905980096 -> -363747616…
79 subx3006 subtract 1381026551423669919010191878449 -82.66614775445371254999357800739 -> 138102655142…
87 subx3007 subtract 4627.026960423072127953556635585 -4410583132901.830017479741231131 -> 44105831375…
95 subx3008 subtract 75353574493.84484153484918212042 -8684111695095849922263044191221 -> 868411169509…
103 subx3009 subtract 6907058.216435355874729592373011 2.857005446917670515662398741545 -> 6907055.3594…
111 subx3010 subtract -38949530427253.24030680468677190 712168021.1265384466442576619064E-992 -> -38949…
[all …]
DddCanonical.decTest302 ddcan502 subtract 0E+384 #77ffff3fcff3fcff -> #f7fcff3fcff3fcff
303 ddcan503 subtract #77fcffffcff3fcff 0E+384 -> #77fcff3fcff3fcff
305 ddcan504 subtract 0E-398 #77ffff3fcff3fcff -> #f7fcff3fcff3fcff Rounded
306 ddcan505 subtract #77fcffffcff3fcff 0E-398 -> #77fcff3fcff3fcff Rounded
308 ddcan506 subtract -1E-398 #77ffff3fcff3fcff -> #f7fcff3fcff3fcff Inexact Rounded
309 ddcan507 subtract #77ffff3fcff3fcff -1E-398 -> #77fcff3fcff3fcff Inexact Rounded
311 ddcan511 subtract 0 #7c03ff3fcff3fcff -> #7c00ff3fcff3fcff
312 ddcan512 subtract #7c03ff3fcff3fcff 0 -> #7c00ff3fcff3fcff
314 ddcan513 subtract 0 #7c40ff3fcff3fcff -> #7c00ff3fcff3fcff
315 ddcan514 subtract #7c40ff3fcff3fcff 0 -> #7c00ff3fcff3fcff
[all …]
DdqCanonical.decTest321 dqcan502 subtract 0E+6144 #77ffcff3fcff3fcffffcff3fcff3fcff -> #f7ffcff3fcff3fcff3fcff3fcf…
322 dqcan503 subtract #77ffcff3fcff3fcff3fcff3ffff3fcff 0E+6144 -> #77ffcff3fcff3fcff3fcff3fcf…
324 dqcan504 subtract 0E-6176 #77ffcff3ffff3fcff3fcff3fcff3fcff -> #f7ffcff3fcff3fcff3fcff3fcf…
325 dqcan505 subtract #77ffcff3fcff3fcff3fcff3fcff3ffff 0E-6176 -> #77ffcff3fcff3fcff3fcff3fcf…
327 dqcan506 subtract -1E-6176 #77ffcff3fcff3fcff3fcff3fcfffffff -> #f7ffcff3fcff3fcff3fcff3fc…
328 dqcan507 subtract #77ffcffffffffffffffffffffff3fcff -1E-6176 -> #77ffcff3fcff3fcff3fcff3fc…
330 dqcan511 subtract 0 #7c000ff3fcff3fcff3fcfffffff3fcff -> #7c000ff3fcff3fcff3fcff3fcff3fcff
331 dqcan512 subtract #7c000ff3fcff3fcfffffff3fcff3fcff 0 -> #7c000ff3fcff3fcff3fcff3fcff3fcff
333 dqcan513 subtract 0 #7c400ff3fcff3fcff3fcff3fcff3fcff -> #7c000ff3fcff3fcff3fcff3fcff3fcff
334 dqcan514 subtract #7c020ff3fcff3fcff3fcff3fcff3fcff 0 -> #7c000ff3fcff3fcff3fcff3fcff3fcff
[all …]
/external/crcalc/src/com/hp/creals/
DUnaryCRFunction.java322 max_arg_prec[0] = high[0].subtract(low[0]).msd() - 4; in inverseMonotone_UnaryCRFunction()
323 deriv_msd[0] = f_high[0].subtract(f_low[0]) in inverseMonotone_UnaryCRFunction()
324 .divide(high[0].subtract(low[0])).msd(); in inverseMonotone_UnaryCRFunction()
333 BigInteger difference = x.subtract(y); in sloppy_compare()
380 .subtract(big1); in approximate()
391 if (f_h.compareTo(arg_appr.subtract(big1)) < 0 in approximate()
410 l = rough_appr.subtract(big1) in approximate()
431 BigInteger difference = h.subtract(l); in approximate()
445 BigInteger f_difference = f_h.subtract(f_l); in approximate()
462 BigInteger arg_difference = arg_appr.subtract(f_l); in approximate()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECFieldElement.java19 public abstract ECFieldElement subtract(ECFieldElement b); in subtract() method in ECFieldElement
44 return multiply(b).subtract(x.multiply(y)); in multiplyMinusProduct()
54 return square().subtract(x.multiply(y)); in squareMinusProduct()
99 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue()
165 public ECFieldElement subtract(ECFieldElement b) in subtract() method in ECFieldElement.Fp
180 return new Fp(q, r, modReduce(ab.subtract(xy))); in multiplyMinusProduct()
198 return x.signum() == 0 ? this : new Fp(q, r, q.subtract(x)); in negate()
211 return new Fp(q, r, modReduce(aa.subtract(xy))); in squareMinusProduct()
284 … BigInteger k = legendreExponent.add(ECConstants.ONE), qMinusOne = q.subtract(ECConstants.ONE); in sqrt()
296 … || !modReduce(P.multiply(P).subtract(fourX)).modPow(legendreExponent, q).equals(qMinusOne)); in sqrt()
[all …]
DECPoint.java489 public abstract ECPoint subtract(ECPoint b); in subtract() method in ECPoint
587 public ECPoint subtract(ECPoint b) in subtract() method in ECPoint.AbstractFp
688 ECFieldElement dx = X2.subtract(X1), dy = Y2.subtract(Y1); in add()
703 ECFieldElement X3 = gamma.square().subtract(X1).subtract(X2); in add()
704 ECFieldElement Y3 = gamma.multiply(X1.subtract(X3)).subtract(Y1); in add()
719 ECFieldElement u = u1.subtract(u2); in add()
722 ECFieldElement v = v1.subtract(v2); in add()
742 … ECFieldElement A = u.square().multiply(w).subtract(vCubed).subtract(two(vSquaredV2)); in add()
745 ECFieldElement Y3 = vSquaredV2.subtract(A).multiplyMinusProduct(u, u2, vCubed); in add()
765 ECFieldElement dx = X1.subtract(X2), dy = Y1.subtract(Y2); in add()
[all …]
DTnaf.java101 norm = s1.subtract(s2).add(s3); in norm()
143 norm = s1.subtract(s2).add(s3); in norm()
184 SimpleBigDecimal eta0 = lambda0.subtract(f0); in round()
185 SimpleBigDecimal eta1 = lambda1.subtract(f1); in round()
196 eta = eta.subtract(eta1); in round()
207 check1 = eta0.subtract(threeEta1); in round()
214 check2 = eta0.subtract(fourEta1); in round()
344 …u[i] = (byte) ECConstants.TWO.subtract((r0.subtract(r1.shiftLeft(1))).mod(ECConstants.FOUR)).intVa… in tauAdicNaf()
372 r0 = r1.subtract(s); in tauAdicNaf()
483 u2 = s.subtract(u0.shiftLeft(1)); in getLucas()
[all …]
DSimpleBigDecimal.java98 public SimpleBigDecimal subtract(SimpleBigDecimal b) in subtract() method in SimpleBigDecimal
103 public SimpleBigDecimal subtract(BigInteger b) in subtract() method in SimpleBigDecimal
105 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
193 BigInteger fract = bigInt.subtract(floorBigInt.shiftLeft(scale)); in toString()
196 fract = ECConstants.ONE.shiftLeft(scale).subtract(fract); in toString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP521R1Point.java133 SecP521R1Field.subtract(U1, U2, H); in add()
136 SecP521R1Field.subtract(S1, S2, R); in add()
165 SecP521R1Field.subtract(X3.x, V, X3.x); in add()
166 SecP521R1Field.subtract(X3.x, V, X3.x); in add()
169 SecP521R1Field.subtract(V, X3.x, Y3.x); in add()
171 SecP521R1Field.subtract(t2, t1, Y3.x); in add()
223 SecP521R1Field.subtract(X1.x, Z1Squared, t1); in twice()
241 SecP521R1Field.subtract(X3.x, S, X3.x); in twice()
242 SecP521R1Field.subtract(X3.x, S, X3.x); in twice()
245 SecP521R1Field.subtract(S, X3.x, Y3.x); in twice()
[all …]
DSecP192R1Point.java136 SecP192R1Field.subtract(U1, U2, H); in add()
139 SecP192R1Field.subtract(S1, S2, R); in add()
171 SecP192R1Field.subtract(X3.x, G, X3.x); in add()
174 SecP192R1Field.subtract(V, X3.x, Y3.x); in add()
230 SecP192R1Field.subtract(X1.x, Z1Squared, t1); in twice()
248 SecP192R1Field.subtract(X3.x, S, X3.x); in twice()
249 SecP192R1Field.subtract(X3.x, S, X3.x); in twice()
252 SecP192R1Field.subtract(S, X3.x, Y3.x); in twice()
254 SecP192R1Field.subtract(Y3.x, t1, Y3.x); in twice()
DSecP256R1Point.java135 SecP256R1Field.subtract(U1, U2, H); in add()
138 SecP256R1Field.subtract(S1, S2, R); in add()
170 SecP256R1Field.subtract(X3.x, G, X3.x); in add()
173 SecP256R1Field.subtract(V, X3.x, Y3.x); in add()
228 SecP256R1Field.subtract(X1.x, Z1Squared, t1); in twice()
246 SecP256R1Field.subtract(X3.x, S, X3.x); in twice()
247 SecP256R1Field.subtract(X3.x, S, X3.x); in twice()
250 SecP256R1Field.subtract(S, X3.x, Y3.x); in twice()
252 SecP256R1Field.subtract(Y3.x, t1, Y3.x); in twice()
DSecP224R1Point.java135 SecP224R1Field.subtract(U1, U2, H); in add()
138 SecP224R1Field.subtract(S1, S2, R); in add()
170 SecP224R1Field.subtract(X3.x, G, X3.x); in add()
173 SecP224R1Field.subtract(V, X3.x, Y3.x); in add()
228 SecP224R1Field.subtract(X1.x, Z1Squared, t1); in twice()
246 SecP224R1Field.subtract(X3.x, S, X3.x); in twice()
247 SecP224R1Field.subtract(X3.x, S, X3.x); in twice()
250 SecP224R1Field.subtract(S, X3.x, Y3.x); in twice()
252 SecP224R1Field.subtract(Y3.x, t1, Y3.x); in twice()
DSecP384R1Point.java135 SecP384R1Field.subtract(U1, U2, H); in add()
138 SecP384R1Field.subtract(S1, S2, R); in add()
170 SecP384R1Field.subtract(X3.x, G, X3.x); in add()
173 SecP384R1Field.subtract(V, X3.x, Y3.x); in add()
229 SecP384R1Field.subtract(X1.x, Z1Squared, t1); in twice()
247 SecP384R1Field.subtract(X3.x, S, X3.x); in twice()
248 SecP384R1Field.subtract(X3.x, S, X3.x); in twice()
251 SecP384R1Field.subtract(S, X3.x, Y3.x); in twice()
253 SecP384R1Field.subtract(Y3.x, t1, Y3.x); in twice()
DSecP192K1Point.java137 SecP192K1Field.subtract(U1, U2, H); in add()
140 SecP192K1Field.subtract(S1, S2, R); in add()
172 SecP192K1Field.subtract(X3.x, G, X3.x); in add()
175 SecP192K1Field.subtract(V, X3.x, Y3.x); in add()
236 SecP192K1Field.subtract(X3.x, S, X3.x); in twice()
237 SecP192K1Field.subtract(X3.x, S, X3.x); in twice()
240 SecP192K1Field.subtract(S, X3.x, Y3.x); in twice()
242 SecP192K1Field.subtract(Y3.x, t1, Y3.x); in twice()
DSecP256K1Point.java137 SecP256K1Field.subtract(U1, U2, H); in add()
140 SecP256K1Field.subtract(S1, S2, R); in add()
172 SecP256K1Field.subtract(X3.x, G, X3.x); in add()
175 SecP256K1Field.subtract(V, X3.x, Y3.x); in add()
236 SecP256K1Field.subtract(X3.x, S, X3.x); in twice()
237 SecP256K1Field.subtract(X3.x, S, X3.x); in twice()
240 SecP256K1Field.subtract(S, X3.x, Y3.x); in twice()
242 SecP256K1Field.subtract(Y3.x, t1, Y3.x); in twice()
DSecP224K1Point.java137 SecP224K1Field.subtract(U1, U2, H); in add()
140 SecP224K1Field.subtract(S1, S2, R); in add()
172 SecP224K1Field.subtract(X3.x, G, X3.x); in add()
175 SecP224K1Field.subtract(V, X3.x, Y3.x); in add()
236 SecP224K1Field.subtract(X3.x, S, X3.x); in twice()
237 SecP224K1Field.subtract(X3.x, S, X3.x); in twice()
240 SecP224K1Field.subtract(S, X3.x, Y3.x); in twice()
242 SecP224K1Field.subtract(Y3.x, t1, Y3.x); in twice()
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpMath.java97 result[0] = a.add(shift).subtract(shift); in split()
98 result[1] = a.subtract(result[0]); in split()
142 result[1] = a[1].multiply(b[0]).subtract(a[0].multiply(b[1])); in splitDiv()
267 final Dfp fraca = a.subtract(inta); in exp()
638 final Dfp v = y.subtract(u); in pow()
644 final Dfp c = a.subtract(b.multiply(x.getField().getLn2())); in pow()
754 x = pi.subtract(x); in sin()
768 c[0] = piSplit[0].divide(2).subtract(x); in sin()
804 x = pi.subtract(x); in cos()
818 c[0] = piSplit[0].divide(2).subtract(x); in cos()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/
DPrimes.java173 BigInteger wSubOne = candidate.subtract(ONE); in enhancedMRProbablePrimeTest()
174 BigInteger wSubTwo = candidate.subtract(TWO); in enhancedMRProbablePrimeTest()
230 g = x.subtract(ONE).gcd(w); in enhancedMRProbablePrimeTest()
299 BigInteger wSubOne = candidate.subtract(ONE); in isMRProbablePrime()
300 BigInteger wSubTwo = candidate.subtract(TWO); in isMRProbablePrime()
335 if (base.compareTo(candidate.subtract(ONE)) >= 0) in isMRProbablePrimeToBase()
346 BigInteger wSubOne = candidate.subtract(ONE); in isMRProbablePrimeToBase()
528 BigInteger tx2 = x.subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1); in implSTRandomPrime()
541 tx2 = ONE.shiftLeft(length - 1).subtract(ONE).divide(c0x2).add(ONE).shiftLeft(1); in implSTRandomPrime()
556 a = a.mod(c.subtract(THREE)).add(TWO); in implSTRandomPrime()
[all …]
/external/proguard/src/proguard/evaluation/value/
DDoubleValue.java81 public abstract DoubleValue subtract(DoubleValue other); in subtract() method in DoubleValue
155 public DoubleValue subtract(SpecificDoubleValue other) in subtract() method in DoubleValue
157 return subtract((DoubleValue)other); in subtract()
258 public DoubleValue subtract(ParticularDoubleValue other) in subtract() method in DoubleValue
260 return subtract((SpecificDoubleValue)other); in subtract()
DFloatValue.java81 public abstract FloatValue subtract(FloatValue other); in subtract() method in FloatValue
155 public FloatValue subtract(SpecificFloatValue other) in subtract() method in FloatValue
157 return subtract((FloatValue)other); in subtract()
258 public FloatValue subtract(ParticularFloatValue other) in subtract() method in FloatValue
260 return subtract((SpecificFloatValue)other); in subtract()
/external/pdfium/third_party/bigint/
DBigInteger.cc197 mag.subtract(a.mag, b.mag); in add()
201 mag.subtract(b.mag, a.mag); in add()
207 void BigInteger::subtract(const BigInteger &a, const BigInteger &b) { in subtract() function in BigInteger
210 DTRT_ALIASED(this == &a || this == &b, subtract(a, b)); in subtract()
235 mag.subtract(a.mag, b.mag); in subtract()
241 mag.subtract(b.mag, a.mag); in subtract()
349 mag.subtract(b.mag, mag); in divideWithRemainder()

12345678910>>...17