Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for CEILING (0.03 sec)

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

    import static com.google.common.truth.Truth.assertWithMessage;
    import static java.math.BigInteger.ONE;
    import static java.math.BigInteger.TEN;
    import static java.math.BigInteger.ZERO;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/MathTesting.java

     * limitations under the License.
     */
    
    package com.google.common.math;
    
    import static java.math.BigInteger.ONE;
    import static java.math.BigInteger.ZERO;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/TreeMultiset.java

          return (node == null) ? 0 : node.height;
        }
    
        private @Nullable 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedMultisets.java

        }
    
        @Override
        public @Nullable E floor(@ParametricNullness E e) {
          return getElementOrNull(multiset().headMultiset(e, CLOSED).lastEntry());
        }
    
        @Override
        public @Nullable E ceiling(@ParametricNullness E e) {
          return getElementOrNull(multiset().tailMultiset(e, CLOSED).firstEntry());
        }
    
        @Override
        public @Nullable E higher(@ParametricNullness E e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

    import static com.google.common.math.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.truth.Truth.assertThat;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.DOWN;
    import static java.math.RoundingMode.FLOOR;
    import static java.math.RoundingMode.HALF_DOWN;
    import static java.math.RoundingMode.HALF_EVEN;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        public @Nullable V floor(@ParametricNullness V v) {
          return getSortedSetDelegate().floor(v);
        }
    
        @Override
        public @Nullable V ceiling(@ParametricNullness V v) {
          return getSortedSetDelegate().ceiling(v);
        }
    
        @Override
        public @Nullable V higher(@ParametricNullness V v) {
          return getSortedSetDelegate().higher(v);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

        }
    
        @Override
        public @Nullable E floor(@ParametricNullness E e) {
          return delegate.floor(e);
        }
    
        @Override
        public @Nullable E ceiling(@ParametricNullness E e) {
          return delegate.ceiling(e);
        }
    
        @Override
        public @Nullable E higher(@ParametricNullness E e) {
          return delegate.higher(e);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
Back to top