Home
last modified time | relevance | path

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

123456789

/external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerSubtractTest.java43 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 …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
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()
487 u2 = s.subtract(u0.shiftLeft(1)); in getLucas()
[all …]
DECFieldElement.java14 public abstract ECFieldElement subtract(ECFieldElement b); in subtract() method in ECFieldElement
75 public ECFieldElement subtract(ECFieldElement b) in subtract() method in ECFieldElement.Fp
77 return new Fp(q, x.subtract(b.toBigInteger()).mod(q)); in subtract()
129 BigInteger qMinusOne = q.subtract(ECConstants.ONE); in sqrt()
153 … || !(P.multiply(P).subtract(fourQ).modPow(legendreExponent, q).equals(qMinusOne))); in sqrt()
256 Vl = Vh.multiply(Vl).subtract(P.multiply(Ql)).mod(p); in lucasSequence()
257 Vh = Vh.multiply(Vh).subtract(Qh.shiftLeft(1)).mod(p); in lucasSequence()
262 Uh = Uh.multiply(Vl).subtract(Ql).mod(p); in lucasSequence()
263 Vh = Vh.multiply(Vl).subtract(P.multiply(Ql)).mod(p); in lucasSequence()
264 Vl = Vl.multiply(Vl).subtract(Ql.shiftLeft(1)).mod(p); in lucasSequence()
[all …]
DECPoint.java114 public abstract ECPoint subtract(ECPoint b); in subtract() method in ECPoint
266 ECFieldElement gamma = b.y.subtract(this.y).divide(b.x.subtract(this.x)); in add()
268 ECFieldElement x3 = gamma.square().subtract(this.x).subtract(b.x); in add()
269 ECFieldElement y3 = gamma.multiply(this.x.subtract(x3)).subtract(this.y); in add()
294 ECFieldElement x3 = gamma.square().subtract(this.x.multiply(TWO)); in twice()
295 ECFieldElement y3 = gamma.multiply(this.x.subtract(x3)).subtract(this.y); in twice()
301 public ECPoint subtract(ECPoint b) in subtract() method in ECPoint.Fp
506 public ECPoint subtract(ECPoint b) in subtract() method in ECPoint.F2m
DSimpleBigDecimal.java104 public SimpleBigDecimal subtract(SimpleBigDecimal b) in subtract() method in SimpleBigDecimal
109 public SimpleBigDecimal subtract(BigInteger b) in subtract() method in SimpleBigDecimal
111 return new SimpleBigDecimal(bigInt.subtract(b.shiftLeft(scale)), in subtract()
199 BigInteger fract = bigInt.subtract(floorBigInt.shiftLeft(scale)); in toString()
202 fract = ECConstants.ONE.shiftLeft(scale).subtract(fract); in toString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/
DRSAKeyPairGenerator.java62 if (e.gcd(p.subtract(ONE)).equals(ONE)) in generateKeyPair()
80 if (q.subtract(p).abs().bitLength() < mindiffbits) in generateKeyPair()
95 if (e.gcd(q.subtract(ONE)).equals(ONE)) in generateKeyPair()
125 pSub1 = p.subtract(ONE); in generateKeyPair()
126 qSub1 = q.subtract(ONE); in generateKeyPair()
DDSAParametersGenerator.java131 BigInteger p = x.subtract(c.subtract(ONE)); in generateParameters_FIPS186_2()
150 BigInteger e = p.subtract(ONE).divide(q); in calculateGenerator_FIPS186_2()
151 BigInteger pSub2 = p.subtract(TWO); in calculateGenerator_FIPS186_2()
203 BigInteger q = ONE.shiftLeft(N - 1).add(U).add(ONE).subtract(U.mod(TWO)); in generateParameters_FIPS186_3()
247 BigInteger p = X.subtract(c.subtract(ONE)); in generateParameters_FIPS186_3()
DDHKeyGeneratorHelper.java37 BigInteger max = p.subtract(TWO); in calculatePrivate()
41 max = q.subtract(TWO); in calculatePrivate()
/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()
DLongValue.java87 public LongValue subtract(LongValue other) in subtract() method in LongValue
97 return other.subtract(this); in subtractFrom()
244 public LongValue subtract(SpecificLongValue other) in subtract() method in LongValue
400 public LongValue subtract(ParticularLongValue other) in subtract() method in LongValue
402 return subtract((SpecificLongValue)other); in subtract()
DIntegerValue.java95 public abstract IntegerValue subtract(IntegerValue other); in subtract() method in IntegerValue
272 public IntegerValue subtract(UnknownIntegerValue other) in subtract() method in IntegerValue
274 return subtract((IntegerValue)other); in subtract()
516 public IntegerValue subtract(SpecificIntegerValue other) in subtract() method in IntegerValue
518 return subtract((IntegerValue)other); in subtract()
760 public IntegerValue subtract(ParticularIntegerValue other) in subtract() method in IntegerValue
762 return subtract((SpecificIntegerValue)other); in subtract()
DSpecificDoubleValue.java65 public DoubleValue subtract(DoubleValue other) in subtract() method in SpecificDoubleValue
72 return other.subtract(this); in subtractFrom()
119 public DoubleValue subtract(SpecificDoubleValue other) in subtract() method in SpecificDoubleValue
DSpecificFloatValue.java65 public FloatValue subtract(FloatValue other) in subtract() method in SpecificFloatValue
72 return other.subtract(this); in subtractFrom()
119 public FloatValue subtract(SpecificFloatValue other) in subtract() method in SpecificFloatValue
DParticularDoubleValue.java85 public DoubleValue subtract(DoubleValue other) in subtract() method in ParticularDoubleValue
92 return value == 0.0 ? other : other.subtract(this); in subtractFrom()
139 public DoubleValue subtract(ParticularDoubleValue other) in subtract() method in ParticularDoubleValue
DParticularFloatValue.java85 public FloatValue subtract(FloatValue other) in subtract() method in ParticularFloatValue
92 return value == 0.0 ? other : other.subtract(this); in subtractFrom()
139 public FloatValue subtract(ParticularFloatValue other) in subtract() method in ParticularFloatValue
DParticularLongValue.java85 public LongValue subtract(LongValue other) in subtract() method in ParticularLongValue
92 return other.subtract(this); in subtractFrom()
173 public LongValue subtract(ParticularLongValue other) in subtract() method in ParticularLongValue
DSpecificLongValue.java65 public LongValue subtract(LongValue other) in subtract() method in SpecificLongValue
72 return other.subtract(this); in subtractFrom()
153 public LongValue subtract(SpecificLongValue other) in subtract() method in SpecificLongValue
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestIntervalSet.java152 String result = (s.subtract(s2)).toString(); in testSubtractOfCompletelyContainedRange()
160 String result = (s.subtract(s2)).toString(); in testSubtractOfOverlappingRangeFromLeft()
165 result = (s.subtract(s3)).toString(); in testSubtractOfOverlappingRangeFromLeft()
173 String result = (s.subtract(s2)).toString(); in testSubtractOfOverlappingRangeFromRight()
178 result = (s.subtract(s3)).toString(); in testSubtractOfOverlappingRangeFromRight()
186 String result = (s.subtract(s2)).toString(); in testSubtractOfCompletelyCoveredRange()
196 String result = (s.subtract(s2)).toString(); in testSubtractOfRangeSpanningMultipleRanges()
201 result = (s.subtract(s3)).toString(); in testSubtractOfRangeSpanningMultipleRanges()
214 String result = (s.subtract(s2)).toString(); in testSubtractOfWackyRange()
254 String result = s.subtract(s2).toString(); in testSingleElementMinusDisjointSet()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
DLookaheadSet.java68 public LookaheadSet subtract(LookaheadSet other) { in subtract() method in LookaheadSet
69 return new LookaheadSet(this.tokenTypeSet.subtract(other.tokenTypeSet)); in subtract()
87 tokenTypeSet = (IntervalSet)tokenTypeSet.subtract(IntervalSet.of(a)); in remove()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DAbstractBox.java78 center.subtract(axes[0]).subtractLocal(axes[1]).subtractLocal(axes[2]), in computeVertices()
81 center.subtract(axes[0]).addLocal(axes[1]).subtractLocal(axes[2]), in computeVertices()
83 center.subtract(axes[0]).subtractLocal(axes[1]).addLocal(axes[2]), in computeVertices()
85 center.subtract(axes[0]).addLocal(axes[1]).addLocal(axes[2]) in computeVertices()
/external/webkit/Source/WebKit2/Platform/
DRegion.h48 void subtract(const Region&);
126 static inline Region subtract(const Region& a, const Region& b) in subtract() function
129 result.subtract(b); in subtract()
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/
DIntersection.java109 v1.subtract(center, tmp0); in intersect()
110 v2.subtract(center, tmp1); in intersect()
111 v3.subtract(center, tmp2); in intersect()
114 tmp1.subtract(tmp0, e0); // tri edge 0 in intersect()
115 tmp2.subtract(tmp1, e1); // tri edge 1 in intersect()
116 tmp0.subtract(tmp2, e2); // tri edge 2 in intersect()
/external/replicaisland/src/com/replica/replicaisland/
DOrbitalMagnetComponent.java72 mDelta.subtract(mCenter); in applyMagnetism()
89 targetVelocity.subtract(mVelocity); in applyMagnetism()
99 mDelta.subtract(mRim); in applyMagnetism()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
DConstraintDistLimit.java60 Vector3f v = translations[frame].subtract(targetLocation); in bakeConstraint()
89 Vector3f v = currentLocation.subtract(targetLocation); in distLimit()
112 v = targetLocation.subtract(currentLocation).normalizeLocal().multLocal(dist * influence); in distLimit()

123456789