- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testLessThanBranchFree (0.14 sec)
-
guava-tests/test/com/google/common/math/IntMathTest.java
assertEquals( /*expected=*/ IntMath.sqrt(Integer.MAX_VALUE, FLOOR), /*actual=*/ IntMath.FLOOR_SQRT_MAX_INT); } @AndroidIncompatible // presumably slow public void testLessThanBranchFree() { for (int x : ALL_INTEGER_CANDIDATES) { for (int y : ALL_INTEGER_CANDIDATES) { if (LongMath.fitsInInt((long) x - y)) { int expected = (x < y) ? 1 : 0;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
assertEquals( /*expected=*/ IntMath.sqrt(Integer.MAX_VALUE, FLOOR), /*actual=*/ IntMath.FLOOR_SQRT_MAX_INT); } @AndroidIncompatible // presumably slow public void testLessThanBranchFree() { for (int x : ALL_INTEGER_CANDIDATES) { for (int y : ALL_INTEGER_CANDIDATES) { if (LongMath.fitsInInt((long) x - y)) { int expected = (x < y) ? 1 : 0;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 23.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} } int k = LongMath.biggestSimpleBinomials.length; assertThrows(ArithmeticException.class, () -> simpleBinomial(2 * k, k)); } @AndroidIncompatible // slow public void testLessThanBranchFree() { for (long x : ALL_LONG_CANDIDATES) { for (long y : ALL_LONG_CANDIDATES) { BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y)); if (fitsInLong(difference)) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 30.6K bytes - Viewed (0)