/libcore/luni/src/main/java/java/math/ |
D | Division.java | 52 long rem = 0; in divideArrayByInt() local 56 long temp = (rem << 32) | (dividend[i] & 0xffffffffL); in divideArrayByInt() 60 rem = (temp % bLong); in divideArrayByInt() 69 rem = aPos % bPos; in divideArrayByInt() 71 rem = (rem << 1) + (temp & 1); in divideArrayByInt() 74 if (quot <= rem) { in divideArrayByInt() 75 rem -= quot; in divideArrayByInt() 77 if (quot - rem <= bLong) { in divideArrayByInt() 78 rem += bLong - quot; in divideArrayByInt() 81 rem += (bLong << 1) - quot; in divideArrayByInt() [all …]
|
D | NativeBN.java | 109 public static native void BN_div(long dv, long rem, long m, long d); in BN_div() argument 123 long add, long rem, long cb); in BN_generate_prime_ex() argument
|
D | Conversion.java | 396 long rem; in divideLongByBillion() local 401 rem = (a % bLong); in divideLongByBillion() 410 rem = aPos % bPos; in divideLongByBillion() 412 rem = (rem << 1) + (a & 1); in divideLongByBillion() 414 return ((rem << 32) | (quot & 0xFFFFFFFFL)); in divideLongByBillion()
|
D | BigInt.java | 301 long quot, rem; in division() local 310 rem = remainder.bignum; in division() 312 rem = 0; in division() 314 NativeBN.BN_div(quot, rem, dividend.bignum, divisor.bignum); in division()
|
D | BigDecimal.java | 1086 long rem = remainder.longValue(); in divideBigIntegers() local 1088 compRem = longCompareTo(Math.abs(rem) * 2,Math.abs(divisor)); in divideBigIntegers() 2259 int rem = (int)(exponent % 3); in toEngineeringString() local 2261 if (rem != 0) { in toEngineeringString() 2265 rem = (rem < 0) ? -rem : 3 - rem; in toEngineeringString() 2266 exponent += rem; in toEngineeringString() 2269 rem = (rem < 0) ? rem + 3 : rem; in toEngineeringString() 2270 exponent -= rem; in toEngineeringString() 2271 begin += rem; in toEngineeringString() 2274 for (int i = rem - delta; i > 0; i--) { in toEngineeringString()
|
/libcore/luni/src/main/java/java/util/ |
D | Grego.java | 122 long[] rem = new long[1]; in dayToFields() local 123 long n400 = floorDivide(day, 146097, rem); in dayToFields() 124 long n100 = floorDivide(rem[0], 36524, rem); in dayToFields() 125 long n4 = floorDivide(rem[0], 1461, rem); in dayToFields() 126 long n1 = floorDivide(rem[0], 365, rem); in dayToFields() 129 int dayOfYear = (int)rem[0]; in dayToFields()
|
D | GregorianCalendar.java | 1114 int rem = value % mod; in mod() local 1115 if (value < 0 && rem < 0) { in mod() 1116 return rem + mod; in mod() 1118 return rem; in mod() 1122 int rem = (int) (num1 % 7); in mod7() local 1123 if (num1 < 0 && rem < 0) { in mod7() 1124 return rem + 7; in mod7() 1126 return rem; in mod7()
|
D | ArrayList.java | 571 int rem = remaining; in next() local 575 if (rem == 0) { in next() 578 remaining = rem - 1; in next() 579 return (E) ourList.array[removalIndex = ourList.size - rem]; in next()
|
D | SimpleTimeZone.java | 538 int rem = num1 % 7; in mod7() local 539 return (num1 < 0 && rem < 0) ? 7 + rem : rem; in mod7()
|
/libcore/luni/src/main/native/ |
D | java_math_NativeBN.cpp | 534 static void NativeBN_BN_div(JNIEnv* env, jclass, jlong dv, jlong rem, jlong m, jlong d) { in NativeBN_BN_div() argument 535 if (!fourValidHandles(env, (rem ? rem : dv), (dv ? dv : rem), m, d)) return; in NativeBN_BN_div() 537 BN_div(toBigNum(dv), toBigNum(rem), toBigNum(m), toBigNum(d), ctx.get()); in NativeBN_BN_div() 563 jboolean safe, jlong add, jlong rem, jlong cb) { in NativeBN_BN_generate_prime_ex() argument 565 BN_generate_prime_ex(toBigNum(ret), bits, safe, toBigNum(add), toBigNum(rem), in NativeBN_BN_generate_prime_ex()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalArithmeticTest.java | 1375 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testDivideAndRemainder1() local 1382 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainder1() 1398 String rem = "3.4935796954060524114470681810486417234751682675102093970E-15"; in testDivideAndRemainder2() local 1405 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainder2() 1422 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testDivideAndRemainderMathContextUP() local 1429 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainderMathContextUP() 1446 String rem = "3736186567876.876578956958765675671119238118911893939591735"; in testDivideAndRemainderMathContextDOWN() local 1453 assertEquals("incorrect remainder value", rem, result[1].toString()); in testDivideAndRemainderMathContextDOWN()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalArithmeticTest.java | 328 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testDivideToIntegralValueByZero() local 382 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testDivideAndRemainderByZero() local 431 String rem = "1.3032693871288309587558885943391070087960319452465789990E-15"; in testRemainderByZero() local
|