Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for 63 (0.19 sec)

  1. android/guava/src/com/google/common/math/LongMath.java

            result += aHi * bLo; // aHi * bLo < 2^63, result < 2^64
            if (result < 0) {
              result = UnsignedLongs.remainder(result, m);
            }
            // result < 2^63 again
            result += aLo * bHi; // aLo * bHi < 2^63, result < 2^64
            result = times2ToThe32Mod(result, m); // result < m < 2^63
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       */
      public static long divide(long dividend, long divisor) {
        if (divisor < 0) { // i.e., divisor >= 2^63:
          if (compare(dividend, divisor) < 0) {
            return 0; // dividend < divisor
          } else {
            return 1; // dividend >= divisor
          }
        }
    
        // Optimization - use signed division if dividend < 2^63
        if (dividend >= 0) {
          return dividend / divisor;
        }
    
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

        assertFalse(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
      private static long[] generateFourByteShardsExpectedRunnables() {
        long[] expected = new long[128];
        // 0-63 are all 5300224
        for (int i = 0; i <= 63; i++) {
          expected[i] = 5300224;
        }
        // 97-111 are all 2342912
        for (int i = 97; i <= 111; i++) {
          expected[i] = 2342912;
        }
        // 113-117 are all 1048576
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/MathTesting.java

        // First add all the integer candidate values.
        longValues.addAll(Iterables.transform(POSITIVE_INTEGER_CANDIDATES, TO_LONG));
        // Add boundary values manually to avoid over/under flow (this covers 2^N for 31 and 63).
        longValues.add(Integer.MAX_VALUE + 1L, Long.MAX_VALUE - 1L, Long.MAX_VALUE);
    
        // Now add values near 2^N for lots of values of N.
        for (int exponent : asList(32, 33, 39, 40, 41, 47, 48, 49, 55, 56, 57)) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/LongMathTest.java

        // parseInt blows up on overflow as opposed to intValue() which does not.
        return Long.parseLong(bigMean.toString());
      }
    
      private static boolean fitsInLong(BigInteger big) {
        return big.bitLength() <= 63;
      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/LongMathTest.java

        // parseInt blows up on overflow as opposed to intValue() which does not.
        return Long.parseLong(bigMean.toString());
      }
    
      private static boolean fitsInLong(BigInteger big) {
        return big.bitLength() <= 63;
      }
    
      private static final BigInteger MAX_LONG = BigInteger.valueOf(Long.MAX_VALUE);
      private static final BigInteger MIN_LONG = BigInteger.valueOf(Long.MIN_VALUE);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(BigInteger.valueOf(Long.MIN_VALUE).add(bigI))
              .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();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/Utf8Test.java

        assertFalse(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
      private static long[] generateFourByteShardsExpectedRunnables() {
        long[] expected = new long[128];
        // 0-63 are all 5300224
        for (int i = 0; i <= 63; i++) {
          expected[i] = 5300224;
        }
        // 97-111 are all 2342912
        for (int i = 97; i <= 111; i++) {
          expected[i] = 2342912;
        }
        // 113-117 are all 1048576
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/MathTesting.java

        // First add all the integer candidate values.
        longValues.addAll(Iterables.transform(POSITIVE_INTEGER_CANDIDATES, TO_LONG));
        // Add boundary values manually to avoid over/under flow (this covers 2^N for 31 and 63).
        longValues.add(Integer.MAX_VALUE + 1L, Long.MAX_VALUE - 1L, Long.MAX_VALUE);
    
        // Now add values near 2^N for lots of values of N.
        for (int exponent : asList(32, 33, 39, 40, 41, 47, 48, 49, 55, 56, 57)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

              .add(BigInteger.valueOf(Long.MIN_VALUE).add(bigI))
              .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();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top