Home
last modified time | relevance | path

Searched refs:subtrahend (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/sun/misc/
DFDBigInteger.java781 public FDBigInteger leftInplaceSub(FDBigInteger subtrahend) { in leftInplaceSub() argument
782 assert this.size() >= subtrahend.size() : "result should be positive"; in leftInplaceSub()
789 int offsetDiff = subtrahend.offset - minuend.offset; in leftInplaceSub()
790 int[] sData = subtrahend.data; in leftInplaceSub()
792 int subLen = subtrahend.nWords; in leftInplaceSub()
805 minuend.offset = subtrahend.offset; in leftInplaceSub()
850 public FDBigInteger rightInplaceSub(FDBigInteger subtrahend) { in rightInplaceSub() argument
851 assert this.size() >= subtrahend.size() : "result should be positive"; in rightInplaceSub()
853 if (subtrahend.isImmutable) { in rightInplaceSub()
854 subtrahend = new FDBigInteger(subtrahend.data.clone(), subtrahend.offset); in rightInplaceSub()
[all …]
/libcore/luni/src/main/java/java/math/
DBigDecimal.java836 public BigDecimal subtract(BigDecimal subtrahend) { in subtract() argument
837 int diffScale = this.scale - subtrahend.scale; in subtract()
841 return subtrahend.negate(); in subtract()
843 if (subtrahend.isZero()) { in subtract()
846 } else if (subtrahend.isZero()) { in subtract()
854 if (Math.max(this.bitLength, subtrahend.bitLength) + 1 < 64) { in subtract()
855 return valueOf(this.smallValue - subtrahend.smallValue,this.scale); in subtract()
857 …return new BigDecimal(this.getUnscaledValue().subtract(subtrahend.getUnscaledValue()), this.scale); in subtract()
861 … Math.max(this.bitLength,subtrahend.bitLength+LONG_POWERS_OF_TEN_BIT_LENGTH[diffScale])+1<64) { in subtract()
862 …return valueOf(this.smallValue-subtrahend.smallValue*MathUtils.LONG_POWERS_OF_TEN[diffScale],this.… in subtract()
[all …]