- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testLog2Ceiling (0.07 sec)
-
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
int result = BigIntegerMath.log2(x, mode); assertThat(ZERO.setBit(result)).isAtMost(x); assertThat(ZERO.setBit(result + 1)).isGreaterThan(x); } } } public void testLog2Ceiling() { for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) { for (RoundingMode mode : asList(CEILING, UP)) { int result = BigIntegerMath.log2(x, mode); assertThat(ZERO.setBit(result)).isAtLeast(x);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Nov 19 01:35:24 UTC 2025 - 27.1K bytes - Viewed (0)