Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for 53 (0.28 sec)

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

            }
          }
        }
        for (double d :
            Doubles.asList(
                0,
                1,
                2,
                7,
                51,
                102,
                Math.scalb(1.0, 53),
                Integer.MIN_VALUE,
                Integer.MAX_VALUE,
                Long.MIN_VALUE,
                Long.MAX_VALUE)) {
          for (double delta : Doubles.asList(0.0, 1.0, 2.0)) {
    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)
  2. android/guava/src/com/google/common/math/StatsAccumulator.java

      /**
       * Adds the given values to the dataset.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
       */
      public void addAll(long... values) {
        for (long value : values) {
          add(value);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/MathTesting.java

            }
          }
        }
        for (double d :
            Doubles.asList(
                0,
                1,
                2,
                7,
                51,
                102,
                Math.scalb(1.0, 53),
                Integer.MIN_VALUE,
                Integer.MAX_VALUE,
                Long.MIN_VALUE,
                Long.MAX_VALUE)) {
          for (double delta : Doubles.asList(0.0, 1.0, 2.0)) {
    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)
  4. android/guava/src/com/google/common/primitives/UnsignedLong.java

       */
      @Override
      public double doubleValue() {
        if (value >= 0) {
          return (double) value;
        }
        // The top bit is set, which means that the double value is going to come from the top 53 bits.
        // So we can ignore the bottom 11, except for rounding. We can unsigned-shift right 1, aka
        // unsigned-divide by 2, and convert that. Then we'll get exactly half of the desired double
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 8.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        // The values here look like 111...11101...010 in binary, where the initial 111...1110 takes
        // up exactly as many bits as can be represented in the significand (24 for float, 53 for
        // double). That final 0 should be rounded up to 1 because the remaining bits make that number
        // slightly nearer.
        long floatConversionTest = 0xfffffe8000000002L;
        long doubleConversionTest = 0xfffffffffffff402L;
    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)
  6. guava-tests/test/com/google/common/math/LongMathTest.java

        } catch (IllegalArgumentException expected) {
        }
      }
    
      private static final long[] roundToDoubleTestCandidates = {
        0,
        16,
        1L << 53,
        (1L << 53) + 1,
        (1L << 53) + 2,
        (1L << 53) + 3,
        (1L << 53) + 4,
        1L << 54,
        (1L << 54) + 1,
        (1L << 54) + 2,
        (1L << 54) + 3,
        (1L << 54) + 4,
        0x7ffffffffffffe00L, // halfway between 2^63 and next-lower double
    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)
  7. android/guava/src/com/google/common/math/Stats.java

       * Returns statistics over a dataset containing the given values.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))
       */
      public static Stats of(long... values) {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.addAll(values);
        return accumulator.snapshot();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/LongMath.java

                  | (1L << (31 - 2))
                  | (1L << (37 - 2))
                  | (1L << (41 - 2))
                  | (1L << (43 - 2))
                  | (1L << (47 - 2))
                  | (1L << (53 - 2))
                  | (1L << (59 - 2))
                  | (1L << (61 - 2));
          // Look up n within the mask.
          return ((mask >> ((int) n - 2)) & 1) != 0;
        }
    
    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)
  9. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        // The values here look like 111...11101...010 in binary, where the initial 111...1110 takes
        // up exactly as many bits as can be represented in the significand (24 for float, 53 for
        // double). That final 0 should be rounded up to 1 because the remaining bits make that number
        // slightly nearer.
        long floatConversionTest = 0xfffffe8000000002L;
        long doubleConversionTest = 0xfffffffffffff402L;
    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)
  10. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

          int[] temp =
              new int[] {
                32, 9, 10, 101, 97, 13, 105, 111, 110, 116, 114, 115, 108, 100, 99, 117, 109, 104, 112,
                103, 48, 46, 98, 49, 160, 102, 50, 118, 121, 107, 44, 119, 45, 58, 51, 53, 52, 57, 56,
                106, 54, 122, 55, 47, 41, 40, 124, 120, 1103, 1072, 1086, 113, 1080, 1575, 1077, 1085,
                1090, 12540, 1088, 12398, 95, 1089, 39, 1604, 33, 233, 12290, 30340, 1083, 1074, 12289,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
Back to top