Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for x2 (0.04 sec)

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

          int result = BigIntegerMath.log2(x, HALF_UP);
          BigInteger x2 = x.pow(2);
          // x^2 < 2^(2 * result + 1), or else we would have rounded up
          assertTrue(ZERO.setBit(2 * result + 1).compareTo(x2) > 0);
          // x^2 >= 2^(2 * result - 1), or else we would have rounded down
          assertTrue(result == 0 || ZERO.setBit(2 * result - 1).compareTo(x2) <= 0);
        }
      }
    
      public void testLog2HalfDown() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Closer.java

       * @throws X1 when the given throwable is of the declared type X1
       * @throws X2 when the given throwable is of the declared type X2
       */
      public <X1 extends Exception, X2 extends Exception> RuntimeException rethrow(
          Throwable e, Class<X1> declaredType1, Class<X2> declaredType2) throws IOException, X1, X2 {
        checkNotNull(e);
        thrown = e;
        throwIfInstanceOf(e, IOException.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

            //
            // To determine which side of logFloor.5 the logarithm is,
            // we compare x^2 to 2^(2 * logFloor + 1).
            BigInteger x2 = x.pow(2);
            int logX2Floor = x2.bitLength() - 1;
            return (logX2Floor < 2 * logFloor + 1) ? logFloor : logFloor + 1;
        }
        throw new AssertionError();
      }
    
      /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

         * 1.0.0.RC1 &lt; 1.0.0-RC2 and more generally:
         * 1.0.0.X1 &lt; 1.0.0-X2 for any string X
         */
        @Test
        void testMng7644() {
            for (String x : new String[] {"abc", "alpha", "a", "beta", "b", "def", "milestone", "m", "RC"}) {
                // 1.0.0.X1 < 1.0.0-X2 for any string x
                checkVersionsOrder("1.0.0." + x + "1", "1.0.0-" + x + "2");
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Throwables.java

       *     null}.
       */
      @Deprecated
      @J2ktIncompatible
      @GwtIncompatible // propagateIfInstanceOf
      public static <X1 extends Throwable, X2 extends Throwable> void propagateIfPossible(
          @Nullable Throwable throwable, Class<X1> declaredType1, Class<X2> declaredType2)
          throws X1, X2 {
        checkNotNull(declaredType2);
        propagateIfInstanceOf(throwable, declaredType1);
        propagateIfPossible(throwable, declaredType2);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

          retVal &= Enums.getIfPresent(enumType, sampleData[i & 255]).isPresent();
        }
        return retVal;
      }
    
      private enum SmallEnum {
        X0,
        X1,
        X2
      }
    
      private enum MediumEnum {
        X0,
        X1,
        X2,
        X3,
        X4,
        X5,
        X6,
        X7,
        X8,
        X9,
        X10,
        X11,
        X12,
        X13,
        X14,
        X15,
        X16,
        X17,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  7. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

     * <li>A hyphen usually precedes a qualifier, and is always less important than digits/number. For example
     *   {@code 1.0.RC2 < 1.0-RC3 < 1.0.1}; but prefer {@code 1.0.0-RC2} over {@code 1.0.0.RC2}, and more
     *   generally: {@code 1.0.X2 < 1.0-X3 < 1.0.1} for any string {@code X}; but prefer {@code 1.0.0-X1}
     *   over {@code 1.0.0.X1}.</li>
     * </ul>
     *
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

        private final ImmutableLongArray parent;
    
        private AsList(ImmutableLongArray parent) {
          this.parent = parent;
        }
    
        // inherit: isEmpty, containsAll, toArray x2, iterator, listIterator, stream, forEach, mutations
    
        @Override
        public int size() {
          return parent.length();
        }
    
        @Override
        public Long get(int index) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/ImmutableIntArray.java

        private final ImmutableIntArray parent;
    
        private AsList(ImmutableIntArray parent) {
          this.parent = parent;
        }
    
        // inherit: isEmpty, containsAll, toArray x2, iterator, listIterator, stream, forEach, mutations
    
        @Override
        public int size() {
          return parent.length();
        }
    
        @Override
        public Integer get(int index) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
Back to top