/external/python/cpython2/Lib/test/decimaltestdata/ |
D | dqSubtract.decTest | 32 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 …]
|
D | ddSubtract.decTest | 32 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 …]
|
D | subtract.decTest | 2 -- 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 …]
|
D | randoms.decTest | 37 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 …]
|
D | randomBound32.decTest | 39 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 …]
|
D | dqCanonical.decTest | 321 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 …]
|
D | ddCanonical.decTest | 302 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 …]
|
/external/python/cpython3/Lib/test/decimaltestdata/ |
D | dqSubtract.decTest | 32 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 …]
|
D | ddSubtract.decTest | 32 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 …]
|
D | subtract.decTest | 2 -- 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 …]
|
D | randoms.decTest | 37 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 …]
|
D | randomBound32.decTest | 39 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 …]
|
D | ddCanonical.decTest | 302 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 …]
|
D | dqCanonical.decTest | 321 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/ |
D | UnaryCRFunction.java | 322 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/ |
D | ECFieldElement.java | 19 public abstract ECFieldElement subtract(ECFieldElement b); in subtract() method in ECFieldElement 49 return multiply(b).subtract(x.multiply(y)); in multiplyMinusProduct() 59 return square().subtract(x.multiply(y)); in squareMinusProduct() 108 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue() 174 public ECFieldElement subtract(ECFieldElement b) in subtract() method in ECFieldElement.Fp 189 return new Fp(q, r, modReduce(ab.subtract(xy))); in multiplyMinusProduct() 207 return x.signum() == 0 ? this : new Fp(q, r, q.subtract(x)); in negate() 220 return new Fp(q, r, modReduce(aa.subtract(xy))); in squareMinusProduct() 293 … BigInteger k = legendreExponent.add(ECConstants.ONE), qMinusOne = q.subtract(ECConstants.ONE); in sqrt() 305 … || !modReduce(P.multiply(P).subtract(fourX)).modPow(legendreExponent, q).equals(qMinusOne)); in sqrt() [all …]
|
D | Tnaf.java | 101 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 …]
|
D | ECPoint.java | 501 public abstract ECPoint subtract(ECPoint b); in subtract() method in ECPoint 599 public ECPoint subtract(ECPoint b) in subtract() method in ECPoint.AbstractFp 686 ECFieldElement dx = X2.subtract(X1), dy = Y2.subtract(Y1); in add() 701 ECFieldElement X3 = gamma.square().subtract(X1).subtract(X2); in add() 702 ECFieldElement Y3 = gamma.multiply(X1.subtract(X3)).subtract(Y1); in add() 717 ECFieldElement u = u1.subtract(u2); in add() 720 ECFieldElement v = v1.subtract(v2); in add() 740 … ECFieldElement A = u.square().multiply(w).subtract(vCubed).subtract(two(vSquaredV2)); in add() 743 ECFieldElement Y3 = vSquaredV2.subtract(A).multiplyMinusProduct(u, u2, vCubed); in add() 763 ECFieldElement dx = X1.subtract(X2), dy = Y1.subtract(Y2); in add() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/ |
D | ECFieldElement.java | 23 public abstract ECFieldElement subtract(ECFieldElement b); in subtract() method in ECFieldElement 53 return multiply(b).subtract(x.multiply(y)); in multiplyMinusProduct() 63 return square().subtract(x.multiply(y)); in squareMinusProduct() 118 return ONE.shiftLeft(bitLength).subtract(p); in calculateResidue() 184 public ECFieldElement subtract(ECFieldElement b) in subtract() method in ECFieldElement.Fp 199 return new Fp(q, r, modReduce(ab.subtract(xy))); in multiplyMinusProduct() 217 return x.signum() == 0 ? this : new Fp(q, r, q.subtract(x)); in negate() 230 return new Fp(q, r, modReduce(aa.subtract(xy))); in squareMinusProduct() 303 … BigInteger k = legendreExponent.add(ECConstants.ONE), qMinusOne = q.subtract(ECConstants.ONE); in sqrt() 315 … || !modReduce(P.multiply(P).subtract(fourX)).modPow(legendreExponent, q).equals(qMinusOne)); in sqrt() [all …]
|
D | Tnaf.java | 102 norm = s1.subtract(s2).add(s3); in norm() 144 norm = s1.subtract(s2).add(s3); in norm() 185 SimpleBigDecimal eta0 = lambda0.subtract(f0); in round() 186 SimpleBigDecimal eta1 = lambda1.subtract(f1); in round() 197 eta = eta.subtract(eta1); in round() 208 check1 = eta0.subtract(threeEta1); in round() 215 check2 = eta0.subtract(fourEta1); in round() 345 …u[i] = (byte) ECConstants.TWO.subtract((r0.subtract(r1.shiftLeft(1))).mod(ECConstants.FOUR)).intVa… in tauAdicNaf() 373 r0 = r1.subtract(s); in tauAdicNaf() 484 u2 = s.subtract(u0.shiftLeft(1)); in getLucas() [all …]
|
D | ECPoint.java | 503 public abstract ECPoint subtract(ECPoint b); in subtract() method in ECPoint 604 public ECPoint subtract(ECPoint b) in subtract() method in ECPoint.AbstractFp 692 ECFieldElement dx = X2.subtract(X1), dy = Y2.subtract(Y1); in add() 707 ECFieldElement X3 = gamma.square().subtract(X1).subtract(X2); in add() 708 ECFieldElement Y3 = gamma.multiply(X1.subtract(X3)).subtract(Y1); in add() 723 ECFieldElement u = u1.subtract(u2); in add() 726 ECFieldElement v = v1.subtract(v2); in add() 746 … ECFieldElement A = u.square().multiply(w).subtract(vCubed).subtract(two(vSquaredV2)); in add() 749 ECFieldElement Y3 = vSquaredV2.subtract(A).multiplyMinusProduct(u, u2, vCubed); in add() 769 ECFieldElement dx = X1.subtract(X2), dy = Y1.subtract(Y2); in add() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/custom/sec/ |
D | SecP521R1Point.java | 137 SecP521R1Field.subtract(U1, U2, H); in add() 140 SecP521R1Field.subtract(S1, S2, R); in add() 169 SecP521R1Field.subtract(X3.x, V, X3.x); in add() 170 SecP521R1Field.subtract(X3.x, V, X3.x); in add() 173 SecP521R1Field.subtract(V, X3.x, Y3.x); in add() 175 SecP521R1Field.subtract(t2, t1, Y3.x); in add() 227 SecP521R1Field.subtract(X1.x, Z1Squared, t1); in twice() 245 SecP521R1Field.subtract(X3.x, S, X3.x); in twice() 246 SecP521R1Field.subtract(X3.x, S, X3.x); in twice() 249 SecP521R1Field.subtract(S, X3.x, Y3.x); in twice() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
D | SecP521R1Point.java | 133 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 …]
|
D | SecP256R1Point.java | 135 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()
|
D | SecP224R1Point.java | 135 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()
|