Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 309 for ceiling (0.14 sec)

  1. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static java.math.RoundingMode.CEILING;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.math.BigInteger;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testCeilingHole() {
        resetWithHole();
        assertEquals(a, navigableSet.ceiling(a));
        assertEquals(c, navigableSet.ceiling(b));
        assertEquals(c, navigableSet.ceiling(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigherHole() {
        resetWithHole();
        assertEquals(c, navigableSet.higher(a));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testCeilingHole() {
        resetWithHole();
        assertEquals(a, navigableSet.ceiling(a));
        assertEquals(c, navigableSet.ceiling(b));
        assertEquals(c, navigableSet.ceiling(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigherHole() {
        resetWithHole();
        assertEquals(c, navigableSet.higher(a));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/BigIntegerMath.java

       * {@code BigInteger.valueOf(2).pow(log2(x, CEILING))}.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
      public static BigInteger ceilingPowerOfTwo(BigInteger x) {
        return BigInteger.ZERO.setBit(log2(x, CEILING));
      }
    
      /**
       * Returns the largest power of two less than or equal to {@code x}. This is equivalent to {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.ARRAY_MASK;
    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static java.math.RoundingMode.CEILING;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.math.BigInteger;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LongMath.java

              }
              return result;
            } else {
              int nBits = LongMath.log2(n, RoundingMode.CEILING);
    
              long result = 1;
              long numerator = n--;
              long denominator = 1;
    
              int numeratorBits = nBits;
              // This is an upper bound on log2(numerator, ceiling).
    
              /*
               * We want to do this in long math for speed, but want to avoid overflow. We adapt the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/LongMath.java

              }
              return result;
            } else {
              int nBits = LongMath.log2(n, RoundingMode.CEILING);
    
              long result = 1;
              long numerator = n--;
              long denominator = 1;
    
              int numeratorBits = nBits;
              // This is an upper bound on log2(numerator, ceiling).
    
              /*
               * We want to do this in long math for speed, but want to avoid overflow. We adapt the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TreeMultiset.java

          return (node == null) ? 0 : node.height;
        }
    
        @CheckForNull
        private AvlNode<E> ceiling(Comparator<? super E> comparator, @ParametricNullness E e) {
          int cmp = comparator.compare(e, getElement());
          if (cmp < 0) {
            return (left == null) ? this : MoreObjects.firstNonNull(left.ceiling(comparator, e), this);
          } else if (cmp == 0) {
            return this;
          } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            for (int i = 0; i < 10; i++) {
              assertEquals(unfiltered.lower(i), filtered.lower(i));
              assertEquals(unfiltered.floor(i), filtered.floor(i));
              assertEquals(unfiltered.ceiling(i), filtered.ceiling(i));
              assertEquals(unfiltered.higher(i), filtered.higher(i));
            }
          }
        }
      }
    
      private FilteredCollectionsTestUtil() {}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertThat(set.ceiling("f")).isNull();
      }
    
      public void testCeiling_elementPresent() {
        ImmutableSortedSet<String> set =
            ImmutableSortedSet.copyOf(new String[] {"e", "e", "f", "f", "i", "d", "c", "k", "p", "c"});
        assertThat(set.ceiling("f")).isEqualTo("f");
        assertThat(set.ceiling("h")).isEqualTo("i");
        assertThat(set.ceiling("a")).isEqualTo("c");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top