Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for shiftLeft (0.07 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI))
              .add(BigInteger.ONE.shiftLeft(63).add(bigI))
              .add(BigInteger.ONE.shiftLeft(64).add(bigI));
        }
        TEST_LONGS = testLongsBuilder.build();
        TEST_BIG_INTEGERS = testBigIntegersBuilder.build();
      }
    
      public void testAsUnsignedAndLongValueAreInverses() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

        checkBigIntegerConversion(
            "::ffff:ffff:ffff:ffff", BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE));
        checkBigIntegerConversion(
            "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
            BigInteger.ONE.shiftLeft(128).subtract(BigInteger.ONE));
      }
    
      public void testFromIpv4BigIntegerInputTooLarge() {
        IllegalArgumentException expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(BigInteger.valueOf(Integer.MAX_VALUE).add(bigI))
              .add(BigInteger.valueOf(Integer.MIN_VALUE).add(bigI))
              .add(BigInteger.ONE.shiftLeft(63).add(bigI))
              .add(BigInteger.ONE.shiftLeft(64).add(bigI));
        }
        TEST_LONGS = testLongsBuilder.build();
        TEST_BIG_INTEGERS = testBigIntegersBuilder.build();
      }
    
      public void testAsUnsignedAndLongValueAreInverses() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/BigIntegerMath.java

           * We have that x / 2^shift < 2^54. Our initial approximation to sqrtFloor(x) will be
           * 2^(shift/2) * sqrtApproxWithDoubles(x / 2^shift).
           */
          sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
        }
        BigInteger sqrt1 = sqrt0.add(x.divide(sqrt0)).shiftRight(1);
        if (sqrt0.equals(sqrt1)) {
          return sqrt0;
        }
        do {
          sqrt0 = sqrt1;
    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/test/com/google/common/math/IntMathTest.java

      public void testMaxLog10ForLeadingZeros() {
        for (int i = 0; i < Integer.SIZE; i++) {
          assertEquals(
              BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Integer.SIZE - i), FLOOR),
              IntMath.maxLog10ForLeadingZeros[i]);
        }
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
      public void testConstantsHalfPowersOf10() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/IntMathTest.java

      public void testMaxLog10ForLeadingZeros() {
        for (int i = 0; i < Integer.SIZE; i++) {
          assertEquals(
              BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Integer.SIZE - i), FLOOR),
              IntMath.maxLog10ForLeadingZeros[i]);
        }
      }
    
      @GwtIncompatible // BigIntegerMath // TODO(cpovirk): GWT-enable BigIntegerMath
      public void testConstantsHalfPowersOf10() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/LongMathTest.java

      public void testMaxLog10ForLeadingZeros() {
        for (int i = 0; i < Long.SIZE; i++) {
          assertEquals(
              BigIntegerMath.log10(BigInteger.ONE.shiftLeft(Long.SIZE - i), FLOOR),
              LongMath.maxLog10ForLeadingZeros[i]);
        }
      }
    
      @GwtIncompatible // TODO
      public void testConstantsPowersOf10() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top