Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for setBit (0.05 sec)

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

            assertTrue(ZERO.setBit(result).compareTo(x) <= 0);
            assertTrue(ZERO.setBit(result + 1).compareTo(x) > 0);
          }
        }
      }
    
      public void testLog2Ceiling() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          for (RoundingMode mode : asList(CEILING, UP)) {
            int result = BigIntegerMath.log2(x, mode);
            assertTrue(ZERO.setBit(result).compareTo(x) >= 0);
    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-tests/test/com/google/common/math/MathBenchmarking.java

        int digits = RANDOM_SOURCE.nextInt(numBits);
        if (digits == 0) {
          return new BigInteger(1, RANDOM_SOURCE);
        } else {
          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
       * probability.
       */
      static BigInteger randomNonZeroBigInteger(int numBits) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/MathBenchmarking.java

        int digits = RANDOM_SOURCE.nextInt(numBits);
        if (digits == 0) {
          return new BigInteger(1, RANDOM_SOURCE);
        } else {
          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
       * probability.
       */
      static BigInteger randomNonZeroBigInteger(int numBits) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/BigIntegerMath.java

       *
       * @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
       * BigInteger.valueOf(2).pow(log2(x, FLOOR))}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedLong.java

      public BigInteger bigIntegerValue() {
        BigInteger bigInt = BigInteger.valueOf(value & UNSIGNED_MASK);
        if (value < 0) {
          bigInt = bigInt.setBit(Long.SIZE - 1);
        }
        return bigInt;
      }
    
      @Override
      public int compareTo(UnsignedLong o) {
        checkNotNull(o);
        return UnsignedLongs.compare(value, o.value);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.parseUnsignedLong("1234567890abcdef", 16))
            .isEqualTo(0x1234567890abcdefL);
      }
    
      public void testParseLongWithRadixLimits() {
        BigInteger max = BigInteger.ZERO.setBit(64).subtract(ONE);
        // loops through all legal radix values.
        for (int r = Character.MIN_RADIX; r <= Character.MAX_RADIX; r++) {
          int radix = r;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
      public void testConstantMaxPowerOfSqrt2Unsigned() {
        assertEquals(
            /* expected= */ BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR)
                .intValue(),
            /* actual= */ IntMath.MAX_POWER_OF_SQRT2_UNSIGNED);
      }
    
      @GwtIncompatible // pow()
      public void testConstantsPowersOf10() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      @GwtIncompatible // TODO
      public void testConstantMaxPowerOfSqrt2Unsigned() {
        assertEquals(
            /* expected= */ BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Long.SIZE - 1), FLOOR)
                .longValue(),
            /* actual= */ LongMath.MAX_POWER_OF_SQRT2_UNSIGNED);
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  9. src/main/resources/fess_indices/fess/fr/stopwords.txt

    j
    l
    à
    m
    n
    s
    t
    y
    été
    étée
    étées
    étés
    étant
    suis
    es
    est
    sommes
    êtes
    sont
    serai
    seras
    sera
    serons
    serez
    seront
    serais
    serait
    serions
    seriez
    seraient
    étais
    était
    étions
    étiez
    étaient
    fus
    fut
    fûmes
    fûtes
    furent
    sois
    soit
    soyons
    soyez
    soient
    fusse
    fusses
    fût
    fussions
    fussiez
    fussent
    ayant
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Mon Nov 27 12:59:36 UTC 2023
    - 977 bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

                @Override
                public OptionalEntity<WebConfig> getWebConfig(final String id) {
                    final WebConfig webConfig = new WebConfig();
                    webConfig.setId(id);
                    if (id.endsWith("P")) {
                        webConfig.setConfigParameter("config.pipeline=wp");
                    }
                    return OptionalEntity.of(webConfig);
                }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 34.9K bytes
    - Viewed (0)
Back to top