/libcore/ojluni/src/main/java/sun/security/util/ |
D | ByteArrayLexOrder.java | 54 int diff; in compare() local 56 diff = (bytes1[i] & 0xFF) - (bytes2[i] & 0xFF); in compare() 57 if (diff != 0) { in compare() 58 return diff; in compare()
|
/libcore/ojluni/src/main/native/ |
D | PollArrayWrapper.c | 47 int diff; in ipoll() local 58 diff = now - start; in ipoll() 59 remaining -= diff; in ipoll() 60 if (diff < 0 || remaining <= 0) { in ipoll()
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | FDBigInteger.java | 587 long diff = multDiffMe(q, S); in quoRemIteration() local 588 if (diff != 0L) { in quoRemIteration() 812 long diff = (mData[mIndex] & LONG_MASK) - (sData[sIndex] & LONG_MASK) + borrow; in leftInplaceSub() local 813 mData[mIndex] = (int) diff; in leftInplaceSub() 814 borrow = diff >> 32; // signed shift in leftInplaceSub() 817 long diff = (mData[mIndex] & LONG_MASK) + borrow; in leftInplaceSub() local 818 mData[mIndex] = (int) diff; in leftInplaceSub() 819 borrow = diff >> 32; // signed shift in leftInplaceSub() 891 long diff = 0L - (sData[sIndex] & LONG_MASK) + borrow; in rightInplaceSub() local 892 sData[sIndex] = (int) diff; in rightInplaceSub() [all …]
|
D | FloatingDecimal.java | 1336 FDBigInteger diff; 1341 diff = bigB.leftInplaceSub(bigD); // bigB is not user further - reuse 1352 diff = diff.leftShift(1); 1357 diff = bigD.rightInplaceSub(bigB); // bigB is not user further - reuse 1363 cmpResult = diff.cmpPow52(B5, Ulp2); 1642 FDBigInteger diff; in floatValue() local 1647 diff = bigB.leftInplaceSub(bigD); // bigB is not user further - reuse in floatValue() 1658 diff = diff.leftShift(1); in floatValue() 1663 diff = bigD.rightInplaceSub(bigB); // bigB is not user further - reuse in floatValue() 1669 cmpResult = diff.cmpPow52(B5, Ulp2); in floatValue()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalTime.java | 194 long diff = Integer.MAX_VALUE; in now() local 198 diff = test.toNanoOfDay() - expected.toNanoOfDay(); in now() 200 diff = Math.floorMod(NANOS_PER_DAY + diff, NANOS_PER_DAY); in now() 201 if (diff < 100000000) { in now() 207 assertTrue(diff < 100000000, // less than 0.1 sec in now()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 314 private String diff = null; field in TestCertUtils.TestCertificate 328 public TestCertificate(String diff) { in TestCertificate() argument 330 this.diff = diff; in TestCertificate() 340 public TestCertificate(String diff, String type) { in TestCertificate() argument 342 this.diff = diff; in TestCertificate() 375 if (this.diff == null) { in equals() 376 return that.diff == null; in equals() 378 return this.diff.equals(that.diff); in equals() 395 if (diff == null) { in writeObject() 399 out.writeUTF(diff); in writeObject() [all …]
|
/libcore/tools/upstream/ |
D | upstream-diff | 59 def run_diff(diff, repositories, rel_paths): argument 78 subprocess.call([diff] + paths) 104 run_diff(args.diff, repositories, args.rel_path)
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | ExactArithTests.java | 119 int diff = StrictMath.subtractExact(x, y); in testIntegerExact() local 122 …fail("FAIL: int StrictMath.subtractExact(" + x + " - " + y + ") = " + diff + "; expected: " + diff… in testIntegerExact() 220 long diff = StrictMath.subtractExact(x, y); in testLongExact() local 221 checkResult("long StrictMath.subtractExact", x, y, diff, resultBig); in testLongExact()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSessionTest.java | 100 long diff = currentTime - sessionTime; in test_getCreationTime() local 102 diff < 10000); in test_getCreationTime() 112 long diff = currentTime - sessionTime; in test_getLastAccessedTime() local 114 diff < 10000); in test_getLastAccessedTime() 115 assertTrue ("diff should be < 10000 but is " + diff, diff < 10000); in test_getLastAccessedTime()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | ExactArithTests.java | 95 int diff = Math.subtractExact(x, y); in testIntegerExact() local 98 … fail("FAIL: int Math.subtractExact(" + x + " - " + y + ") = " + diff + "; expected: " + diff2); in testIntegerExact() 245 long diff = Math.subtractExact(x, y); in testLongExact() local 246 checkResult("long Math.subtractExact", x, y, diff, resultBig); in testLongExact()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DecimalStyle.java | 332 int diff = zeroDigit - '0'; in convertNumberToI18N() local 335 array[i] = (char) (array[i] + diff); in convertNumberToI18N()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 249 long diff = time - x.time; in compareTo() local 250 if (diff < 0) in compareTo() 252 else if (diff > 0) in compareTo() 259 long diff = getDelay(NANOSECONDS) - other.getDelay(NANOSECONDS); in compareTo() local 260 return (diff < 0) ? -1 : (diff > 0) ? 1 : 0; in compareTo()
|
/libcore/ojluni/src/main/java/java/math/ |
D | MutableBigInteger.java | 933 long diff = 0; in subtract() local 942 diff = (a.value[x+a.offset] & LONG_MASK) - in subtract() 943 (b.value[y+b.offset] & LONG_MASK) - ((int)-(diff>>32)); in subtract() 944 result[rstart--] = (int)diff; in subtract() 949 diff = (a.value[x+a.offset] & LONG_MASK) - ((int)-(diff>>32)); in subtract() 950 result[rstart--] = (int)diff; in subtract() 976 long diff = 0; in difference() local 983 diff = (a.value[a.offset+ x] & LONG_MASK) - in difference() 984 (b.value[b.offset+ y] & LONG_MASK) - ((int)-(diff>>32)); in difference() 985 a.value[a.offset+x] = (int)diff; in difference() [all …]
|
D | BigDecimal.java | 4938 int diff = scale - preferredScale; 4939 if(diff < raise) { 4940 return scaledTenPow(raise - diff, qsign, preferredScale);
|
/libcore/metrictests/memory/ |
D | README | 56 # To diff the second heap dump against the first:
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 2046 timespec diff; in Linux_poll() local 2047 diff.tv_sec = now.tv_sec - before.tv_sec; in Linux_poll() 2048 diff.tv_nsec = now.tv_nsec - before.tv_nsec; in Linux_poll() 2049 if (diff.tv_nsec < 0) { in Linux_poll() 2050 --diff.tv_sec; in Linux_poll() 2051 diff.tv_nsec += 1000000000; in Linux_poll() 2054 jint diffMs = diff.tv_sec * 1000 + diff.tv_nsec / 1000000; in Linux_poll()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetDateTime.java | 244 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 245 if (diff >= 100000000) { in now() 249 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 251 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|
D | TCKZonedDateTime.java | 233 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 234 if (diff >= 100000000) { in now() 238 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 240 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|
D | TCKLocalDateTime.java | 265 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 266 if (diff >= 100000000) { in now() 270 … diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() 272 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|
D | TCKInstant.java | 193 long diff = Math.abs(test.toEpochMilli() - expected.toEpochMilli()); in now() local 194 assertTrue(diff < 100); // less than 0.1 secs in now()
|
D | TCKOffsetTime.java | 213 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local 214 assertTrue(diff < 100000000); // less than 0.1 secs in now()
|