Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/java/sun/security/util/
DByteArrayLexOrder.java54 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/
DPollArrayWrapper.c47 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/
DFDBigInteger.java587 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 …]
DFloatingDecimal.java1336 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/
DTestLocalTime.java194 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/
DTestCertUtils.java314 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/
Dupstream-diff59 def run_diff(diff, repositories, rel_paths): argument
78 subprocess.call([diff] + paths)
104 run_diff(args.diff, repositories, args.rel_path)
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java100 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/main/java/java/time/format/
DDecimalStyle.java332 int diff = zeroDigit - '0'; in convertNumberToI18N() local
335 array[i] = (char) (array[i] + diff); in convertNumberToI18N()
/libcore/ojluni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java249 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/metrictests/memory/
DREADME56 # To diff the second heap dump against the first:
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp2001 timespec diff; in Linux_poll() local
2002 diff.tv_sec = now.tv_sec - before.tv_sec; in Linux_poll()
2003 diff.tv_nsec = now.tv_nsec - before.tv_nsec; in Linux_poll()
2004 if (diff.tv_nsec < 0) { in Linux_poll()
2005 --diff.tv_sec; in Linux_poll()
2006 diff.tv_nsec += 1000000000; in Linux_poll()
2009 jint diffMs = diff.tv_sec * 1000 + diff.tv_nsec / 1000000; in Linux_poll()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKOffsetDateTime.java244 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local
245 if (diff >= 100000000) { in now()
249diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now()
251 assertTrue(diff < 100000000); // less than 0.1 secs in now()
DTCKZonedDateTime.java233 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local
234 if (diff >= 100000000) { in now()
238diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now()
240 assertTrue(diff < 100000000); // less than 0.1 secs in now()
DTCKLocalDateTime.java265 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local
266 if (diff >= 100000000) { in now()
270diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now()
272 assertTrue(diff < 100000000); // less than 0.1 secs in now()
DTCKOffsetTime.java213 … long diff = Math.abs(test.toLocalTime().toNanoOfDay() - expected.toLocalTime().toNanoOfDay()); in now() local
214 assertTrue(diff < 100000000); // less than 0.1 secs in now()
DTCKInstant.java193 long diff = Math.abs(test.toEpochMilli() - expected.toEpochMilli()); in now() local
194 assertTrue(diff < 100); // less than 0.1 secs in now()