Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for increment (0.17 sec)

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

      private strictfp double trueLog2(double d) {
        double trueLog2 = StrictMath.log(d) / StrictMath.log(2);
        // increment until it's >= the true value
        while (StrictMath.pow(2.0, trueLog2) < d) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multiset.java

       *
       * <p>This method refines {@link Collection#add}, which only <i>ensures</i> the presence of the
       * element, to further specify that a successful call must always increment the count of the
       * element, and the overall size of the collection, by one.
       *
       * <p>To both add the element and obtain the previous count of that element, use {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

      private strictfp double trueLog2(double d) {
        double trueLog2 = StrictMath.log(d) / StrictMath.log(2);
        // increment until it's >= the true value
        while (StrictMath.pow(2.0, trueLog2) < d) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashMap.java

      private int hashTableMask() {
        return (1 << (metadata & CompactHashing.HASH_TABLE_BITS_MASK)) - 1;
      }
    
      void incrementModCount() {
        metadata += CompactHashing.MODIFICATION_COUNT_INCREMENT;
      }
    
      /**
       * Mark an access of the specified entry. Used only in {@code CompactLinkedHashMap} for LRU
       * ordering.
       */
      void accessEntry(int index) {
        // no-op by default
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      /** Guard for waiting takes */
      private final Monitor.Guard notEmpty;
    
      /** Guard for waiting puts */
      private final Monitor.Guard notFull;
    
      // Internal helper methods
    
      /** Circularly increment i. */
      final int inc(int i) {
        return (++i == items.length) ? 0 : i;
      }
    
      /**
       * Inserts element at current put position, advances, and signals. Call only when occupying
       * monitor.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      /** Guard for waiting takes */
      private final Monitor.Guard notEmpty;
    
      /** Guard for waiting puts */
      private final Monitor.Guard notFull;
    
      // Internal helper methods
    
      /** Circularly increment i. */
      final int inc(int i) {
        return (++i == items.length) ? 0 : i;
      }
    
      /**
       * Inserts element at current put position, advances, and signals. Call only when occupying
       * monitor.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CompactHashSet.java

      private int hashTableMask() {
        return (1 << (metadata & CompactHashing.HASH_TABLE_BITS_MASK)) - 1;
      }
    
      void incrementModCount() {
        metadata += CompactHashing.MODIFICATION_COUNT_INCREMENT;
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean add(@ParametricNullness E object) {
        if (needsAllocArrays()) {
          allocArrays();
        }
        Set<E> delegate = delegateOrNull();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        entry.setValueReference(valueRef);
    
        // absent
        assertFalse(segment.removeLoadingValue(key, hash, valueRef));
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.removeLoadingValue(key, hash, valueRef));
        // no notification sent with removeLoadingValue
        assertTrue(map.removalNotificationQueue.isEmpty());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        entry.setValueReference(valueRef);
    
        // absent
        assertFalse(segment.removeLoadingValue(key, hash, valueRef));
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertTrue(segment.removeLoadingValue(key, hash, valueRef));
        // no notification sent with removeLoadingValue
        assertTrue(map.removalNotificationQueue.isEmpty());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

          totalLoadTime += i;
        }
        for (int i = 0; i < 41; i++) {
          counter2.recordMisses(1);
        }
        for (int i = 0; i < 43; i++) {
          counter2.recordEviction();
        }
    
        counter1.incrementBy(counter2);
        assertEquals(new CacheStats(38, 60, 44, 54, totalLoadTime, 66), counter1.snapshot());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top