Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 424 for rint (0.19 sec)

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

        // Add small multiples of MIN_VALUE and MIN_NORMAL
        for (int scale = 1; scale <= 4; scale++) {
          for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
            fractionalBuilder.add(d * scale).add(-d * scale);
          }
        }
        for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) {
          for (int direction : new int[] {1, -1}) {
    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. guava-tests/test/com/google/common/math/MathTesting.java

        // Add small multiples of MIN_VALUE and MIN_NORMAL
        for (int scale = 1; scale <= 4; scale++) {
          for (double d : Doubles.asList(Double.MIN_VALUE, Double.MIN_NORMAL)) {
            fractionalBuilder.add(d * scale).add(-d * scale);
          }
        }
        for (int i = Double.MIN_EXPONENT; i <= Double.MAX_EXPONENT; i++) {
          for (int direction : new int[] {1, -1}) {
    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)
  3. android/guava/src/com/google/common/math/DoubleMath.java

      @GwtIncompatible // #roundIntermediate
      public static int roundToInt(double x, RoundingMode mode) {
        double z = roundIntermediate(x, mode);
        checkInRangeForRoundingInputs(
            z > MIN_INT_AS_DOUBLE - 1.0 & z < MAX_INT_AS_DOUBLE + 1.0, x, mode);
        return (int) z;
      }
    
      private static final double MIN_INT_AS_DOUBLE = -0x1p31;
      private static final double MAX_INT_AS_DOUBLE = 0x1p31 - 1.0;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

                new int[] {LEAST, LEAST},
                new int[] {LEAST, (int) 1L},
                new int[] {(int) 1L},
                new int[] {(int) 1L, LEAST},
                new int[] {GREATEST, (GREATEST - (int) 1L)},
                new int[] {GREATEST, GREATEST},
                new int[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<int[]> comparator = UnsignedInts.lexicographicalComparator();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

      }
    
      /** Returns an int array of the specified size, filled with ABSENT. */
      private static int[] createFilledWithAbsent(int size) {
        int[] array = new int[size];
        Arrays.fill(array, ABSENT);
        return array;
      }
    
      /** Equivalent to {@code Arrays.copyOf(array, newSize)}, save that the new elements are ABSENT. */
      private static int[] expandAndFillWithAbsent(int[] array, int newSize) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray of(int e0, int e1, int e2, int e3, int e4) {
        return new ImmutableIntArray(new int[] {e0, e1, e2, e3, e4});
      }
    
      /** Returns an immutable array containing the given values, in order. */
      public static ImmutableIntArray of(int e0, int e1, int e2, int e3, int e4, int e5) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        } else {
          /*
           * Use 32 bits per entry.
           */
          int[] hashTable = new int[tableSize];
          Arrays.fill(hashTable, ABSENT);
    
          int outI = 0;
          entries:
          for (int i = 0; i < n; i++) {
            int keyIndex = 2 * i + keyOffset;
            int outKeyIndex = 2 * outI + keyOffset;
            // requireNonNull is safe because the first `2*n` elements have been filled in.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/DenseImmutableTable.java

        this.rowKeyToIndex = Maps.indexMap(rowSpace);
        this.columnKeyToIndex = Maps.indexMap(columnSpace);
        rowCounts = new int[rowKeyToIndex.size()];
        columnCounts = new int[columnKeyToIndex.size()];
        int[] cellRowIndices = new int[cellList.size()];
        int[] cellColumnIndices = new int[cellList.size()];
        for (int i = 0; i < cellList.size(); i++) {
          Cell<R, C, V> cell = cellList.get(i);
          R rowKey = cell.getRowKey();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        for (int i = 1; i < 900; i += 2) {
          if (!falsePositives.contains(i)) {
            assertFalse("BF should not contain " + i, bf.mightContain(Integer.toString(i)));
          }
        }
    
        // Check that there are exactly 29824 false positives for this BF.
        int knownNumberOfFalsePositives = 29824;
        int numFpp = 0;
        for (int i = 1; i < numInsertions * 2; i += 2) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      }
    
      /** get and set for out of bound indices throw IndexOutOfBoundsException */
      public void testIndexing() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int index : new int[] {-1, SIZE}) {
          assertThrows(IndexOutOfBoundsException.class, () -> aa.get(index));
          assertThrows(IndexOutOfBoundsException.class, () -> aa.set(index, 1.0));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
Back to top