/openjdk9/jdk/src/java.base/share/classes/java/math/ |
H A D | MutableBigInteger.java | 73 * BigDecimal divideAndRound to increment the quotient. Use this constant 1079 * divisor. The quotient is placed into quotient. The one word divisor is 1085 int divideOneWord(int divisor, MutableBigInteger quotient) { argument 1093 quotient.value[0] = q; 1094 quotient.intLen = (q == 0) ? 0 : 1; 1095 quotient.offset = 0; 1099 if (quotient.value.length < intLen) 1100 quotient.value = new int[intLen]; 1101 quotient 1146 divide(MutableBigInteger b, MutableBigInteger quotient) argument 1150 divide(MutableBigInteger b, MutableBigInteger quotient, boolean needRemainder) argument 1162 divideKnuth(MutableBigInteger b, MutableBigInteger quotient) argument 1177 divideKnuth(MutableBigInteger b, MutableBigInteger quotient, boolean needRemainder) argument 1241 divideAndRemainderBurnikelZiegler(MutableBigInteger b, MutableBigInteger quotient) argument 1311 divide2n1n(MutableBigInteger b, MutableBigInteger quotient) argument 1346 divide3n2n(MutableBigInteger b, MutableBigInteger quotient) argument 1438 divide(long v, MutableBigInteger quotient) argument 1476 divideMagnitude(MutableBigInteger div, MutableBigInteger quotient, boolean needRemainder ) argument 1681 divideLongMagnitude(long ldivisor, MutableBigInteger quotient) argument [all...] |
H A D | BigDecimal.java | 70 * quotient could have an infinitely long decimal expansion; for 71 * example, 1 divided by 3. If the quotient has a nonterminating 152 * returned. In particular, an exactly representable quotient may be 1562 * @param scale scale of the {@code BigDecimal} quotient to be returned. 1606 * @param scale scale of the {@code BigDecimal} quotient to be returned. 1673 * divisor.scale())}; if the exact quotient cannot be 1678 * @throws ArithmeticException if the exact quotient does not have a 1701 * If the quotient this/divisor has a terminating decimal 1712 BigDecimal quotient; 1714 quotient [all...] |
/openjdk9/jdk/test/java/math/BigDecimal/ |
H A D | IntegralDivisionTests.java | 35 // Exact integer quotient should have the same results from 56 BigDecimal quotient; 57 if (! (quotient=testCase[0].divideToIntegralValue(testCase[1])).equals(testCase[2]) ){ 63 System.err.println("quotient = " + quotient + " scale = " + quotient.scale()); 140 BigDecimal quotient = quotients[i]; 146 if (quotient != null) { 152 System.err.println("expected = " + quotient + " scale = " + quotient [all...] |
H A D | DivideTests.java | 197 BigDecimal quotient = (new BigDecimal(dividend). 200 System.err.println("Exact quotient " + quotient.toString() + 233 BigDecimal quotient; 234 if (! (quotient = tc[0].divide(tc[1])).equals(tc[2]) ) { 236 System.err.println("Unexpected quotient from " + tc[0] + " / " + tc[1] + 237 "; expected " + tc[2] + " got " + quotient); 254 BigDecimal quotient; 255 if (! (quotient = tc[0].divide(tc[1], mc)).equals(tc[2]) ) { 257 System.err.println("Unexpected quotient fro [all...] |
/openjdk9/jdk/test/java/lang/Integer/ |
H A D | Unsigned.java | 359 int quotient; 367 quotient = Integer.divideUnsigned((int) dividend, (int) divisor); 380 quotient = Integer.divideUnsigned((int) dividend, (int) divisor); 383 if (quotient != (int)longQuotient) { 386 Integer.toUnsignedString(quotient),
|
/openjdk9/jdk/test/java/lang/Long/ |
H A D | Unsigned.java | 345 BigInteger quotient = maxUnsignedLong.divide(BigInteger.valueOf(radix)); 347 BigInteger b = quotient.multiply(BigInteger.valueOf(radix + addend)); 400 long quotient; 408 quotient = Long.divideUnsigned(dividend.longValue(), divisor.longValue()); 421 quotient = Long.divideUnsigned(dividend.longValue(), divisor.longValue()); 424 if (quotient != longQuotient.longValue()) { 427 Long.toUnsignedString(quotient),
|
/openjdk9/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/doubleconv/ |
H A D | FixedDtoa.java | 359 // The quotient delivers the first digits, and the remainder fits into a 64 366 final int quotient; 369 // Then need q (quotient) and r (remainder) as follows: 380 quotient = (int) Long.divideUnsigned(dividend, divisor); 384 quotient = (int) Long.divideUnsigned(dividend, divisor); 387 fillDigits32(quotient, buffer);
|
H A D | Bignum.java | 601 final int quotient = Integer.divideUnsigned(this_bigit, other_bigit); 602 bigits_[used_digits_ - 1] = this_bigit - other_bigit * quotient; 603 assert (Integer.compareUnsigned(quotient, 0x10000) < 0); 604 result += quotient;
|
/openjdk9/hotspot/src/cpu/arm/vm/ |
H A D | stubGenerator_arm.cpp | 414 // R1 - quotient 423 Register quotient = R1; local 431 __ orrs(quotient, dividend, divisor, ne); 437 // Approximate the mamximum order of the quotient 439 __ clz(quotient, divisor); 440 __ subs(tmp, quotient, tmp); 441 __ mov(quotient, 0); 459 __ add(quotient, quotient, 1 << i, hs); 465 __ andr(quotient, dividen [all...] |
H A D | templateTable_arm.cpp | 1562 const Register quotient = R2_tmp; local 1566 __ sdiv_w(quotient, dividend, divisor); 1567 __ msub_w(R0_tos, divisor, quotient, dividend); 1630 const Register quotient = R2_tmp; local 1634 __ sdiv(quotient, dividend, divisor); 1635 __ msub(R0_tos, divisor, quotient, dividend);
|
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/jaxp/datatype/ |
H A D | XMLGregorianCalendarImpl.java | 2244 int quotient; 2247 quotient = BigDecimal.valueOf(intTemp - 1).divide(new BigDecimal(TWELVE), BigDecimal.ROUND_UP).intValue(); 2249 quotient = (intTemp - 1) / (13 - 1); 2253 if (quotient != 0) { 2254 setYear(getEonAndYear().add(BigInteger.valueOf(quotient)));
|
/openjdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dv/xs/ |
H A D | AbstractDateTimeDV.java | 726 protected int mod(int a, int b, int quotient) { argument 728 return (a - quotient * b);
|