Home
last modified time | relevance | path

Searched refs:quotient (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/main/java/java/math/
DDivision.java49 static int divideArrayByInt(int[] quotient, int[] dividend, final int dividendLength, in divideArrayByInt() argument
87 quotient[i] = (int) (quot & 0xffffffffL); in divideArrayByInt()
DBigInt.java300 static void division(BigInt dividend, BigInt divisor, BigInt quotient, BigInt remainder) { in division() argument
302 if (quotient != null) { in division()
303 quotient.makeValid(); in division()
304 quot = quotient.bignum; in division()
DBigInteger.java922 BigInt quotient = new BigInt(); in divideAndRemainder() local
924 BigInt.division(getBigInt(), divisorBigInt, quotient, remainder); in divideAndRemainder() local
925 return new BigInteger[] {new BigInteger(quotient), new BigInteger(remainder) }; in divideAndRemainder()
937 BigInt quotient = new BigInt(); in divide() local
938 BigInt.division(getBigInt(), divisor.getBigInt(), quotient, null); in divide() local
939 return new BigInteger(quotient); in divide()
DBigDecimal.java1078 BigInteger quotient = quotAndRem[0]; in divideBigIntegers() local
1081 return new BigDecimal(quotient, scale); in divideBigIntegers()
1090 compRem = roundingBehavior(quotient.testBit(0) ? 1 : 0, in divideBigIntegers()
1096 compRem = roundingBehavior(quotient.testBit(0) ? 1 : 0, in divideBigIntegers()
1100 if(quotient.bitLength() < 63) { in divideBigIntegers()
1101 return valueOf(quotient.longValue() + compRem,scale); in divideBigIntegers()
1103 quotient = quotient.add(BigInteger.valueOf(compRem)); in divideBigIntegers()
1104 return new BigDecimal(quotient, scale); in divideBigIntegers()
1107 return new BigDecimal(quotient, scale); in divideBigIntegers()
1111 long quotient = scaledDividend / scaledDivisor; in dividePrimitiveLongs() local
[all …]
/libcore/luni/src/main/java/java/util/
DGrego.java194 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() local
195 remainder[0] = numerator - (quotient * denominator); in floorDivide()
196 return quotient; in floorDivide()