- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for saturatedSubtract (0.27 sec)
-
android/guava/src/com/google/common/cache/CacheStats.java
return new CacheStats( max(0, saturatedSubtract(hitCount, other.hitCount)), max(0, saturatedSubtract(missCount, other.missCount)), max(0, saturatedSubtract(loadSuccessCount, other.loadSuccessCount)), max(0, saturatedSubtract(loadExceptionCount, other.loadExceptionCount)), max(0, saturatedSubtract(totalLoadTime, other.totalLoadTime)), max(0, saturatedSubtract(evictionCount, other.evictionCount))); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 12.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
for (int b : ALL_INTEGER_CANDIDATES) { assertOperationEquals( a, b, "s-", saturatedCast(valueOf(a).subtract(valueOf(b))), IntMath.saturatedSubtract(a, b)); } } } @AndroidIncompatible // slow @GwtIncompatible // TODO public void testSaturatedMultiply() { for (int a : ALL_INTEGER_CANDIDATES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 24.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
for (long b : ALL_LONG_CANDIDATES) { assertOperationEquals( a, b, "s-", saturatedCast(valueOf(a).subtract(valueOf(b))), LongMath.saturatedSubtract(a, b)); } } } @AndroidIncompatible // slow @GwtIncompatible // TODO public void testSaturatedMultiply() { for (long a : ALL_LONG_CANDIDATES) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 31.4K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
* * @since 20.0 */ // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, || @SuppressWarnings("ShortCircuitBoolean") public static long saturatedSubtract(long a, long b) { long naiveDifference = a - b; if ((a ^ b) >= 0 | (a ^ naiveDifference) >= 0) { // If a and b have the same signs or a has the same sign as the result then there was no
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Aug 29 16:20:07 UTC 2025 - 46.8K bytes - Viewed (0)