Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ceilingPowerOfTwo (0.14 sec)

  1. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

    @GwtCompatible(emulated = true)
    public class BigIntegerMathTest extends TestCase {
      public void testCeilingPowerOfTwo() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          BigInteger result = BigIntegerMath.ceilingPowerOfTwo(x);
          assertTrue(BigIntegerMath.isPowerOfTwo(result));
          assertTrue(result.compareTo(x) >= 0);
          assertTrue(result.compareTo(x.add(x)) < 0);
        }
      }
    
      public void testFloorPowerOfTwo() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

          // ends up being used to compute a "threshold" size, beyond which the internal table
          // will be resized. That threshold is ceilingPowerOfTwo(capacity*loadFactor), where
          // loadFactor is 0.75 by default. So with the calculation here we ensure that the
          // threshold is equal to ceilingPowerOfTwo(expectedSize). There is a separate code
          // path when the first operation on the new map is putAll(otherMap). There, prior to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

          // ends up being used to compute a "threshold" size, beyond which the internal table
          // will be resized. That threshold is ceilingPowerOfTwo(capacity*loadFactor), where
          // loadFactor is 0.75 by default. So with the calculation here we ensure that the
          // threshold is equal to ceilingPowerOfTwo(expectedSize). There is a separate code
          // path when the first operation on the new map is putAll(otherMap). There, prior to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
Back to top