Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 941 for up (0.14 sec)

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

            // fall through
          case DOWN:
          case FLOOR:
            return (Long.SIZE - 1) - Long.numberOfLeadingZeros(x);
    
          case UP:
          case CEILING:
            return Long.SIZE - Long.numberOfLeadingZeros(x - 1);
    
          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
    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. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

       *
       * We get plan0 and plan1 from the route planner.
       * We get plan2 as a follow-up to plan1, typically retry the same IP but different TLS.
       * We get plan3 as a retry of plan0, which was canceled when it lost the race.
       *
       * This test confirms that we prefer to do the TLS follow-up (plan2) before the TCP retry (plan3).
       * It also confirms we enforce the 250 ms delay in each race.
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
      public void testListenerCalledOnException() throws Exception {
        throwException = true;
    
        // Start up the task and unblock the latch to finish the task.
        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/BigIntegerMath.java

            checkRoundingUnnecessary(isPowerOfTwo(x)); // fall through
          case DOWN:
          case FLOOR:
            return logFloor;
    
          case UP:
          case CEILING:
            return isPowerOfTwo(x) ? logFloor : logFloor + 1;
    
          case HALF_DOWN:
          case HALF_UP:
          case HALF_EVEN:
            if (logFloor < SQRT2_PRECOMPUTE_THRESHOLD) {
              BigInteger halfPower =
    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)
  5. guava-tests/benchmark/com/google/common/math/IntMathRoundingBenchmark.java

          nonzero[i] = randomNonZeroBigInteger(Integer.SIZE - 2).intValue();
          ints[i] = RANDOM_SOURCE.nextInt();
        }
      }
    
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
      @Benchmark
      int log2(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

    import java.math.RoundingMode;
    
    /**
     * Benchmarks for the rounding methods of {@code LongMath}.
     *
     * @author Louis Wasserman
     */
    public class LongMathRoundingBenchmark {
      @Param({"DOWN", "UP", "FLOOR", "CEILING", "HALF_EVEN", "HALF_UP", "HALF_DOWN"})
      RoundingMode mode;
    
      private static final long[] positive = new long[ARRAY_SIZE];
      private static final long[] nonzero = new long[ARRAY_SIZE];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/10_contributor_bug_report.yml

      - type: textarea
        id: context
        attributes:
          label: Context (optional)
          description: |
            How has this issue affected you? What are you trying to accomplish?
            Providing context helps us come up with a solution that is most useful in the real world
        validations:
          required: false
      - type: textarea
        id: steps-to-reproduce
        attributes:
          label: Steps to Reproduce
          description: |
    Others
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Feb 16 07:49:32 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/DoubleUtils.java

        }
    
        /*
         * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding
         * easier, we pick out the top SIGNIFICAND_BITS + 2 bits, so we have one to help us round up or
         * down. twiceSignifFloor will contain the top SIGNIFICAND_BITS + 2 bits, and signifFloor the
         * top SIGNIFICAND_BITS + 1.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:37:52 GMT 2021
    - 5.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/BigDecimalMath.java

       * mode}.
       *
       * <p>For the case of {@link RoundingMode#HALF_DOWN}, {@code HALF_UP}, and {@code HALF_EVEN},
       * infinite {@code double} values are considered infinitely far away. For example, 2^2000 is not
       * representable as a double, but {@code roundToDouble(BigDecimal.valueOf(2).pow(2000), HALF_UP)}
       * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. cmd/prepare-storage.go

    			m[err.Error()]--
    			m[err.Error()]--
    		}
    		m[err.Error()]++
    	}
    }()
    
    // Cleans up tmp directory of the local disk.
    func bgFormatErasureCleanupTmp(diskPath string) {
    	// Need to move temporary objects left behind from previous run of minio
    	// server to a unique directory under `minioMetaTmpBucket-old` to clean
    	// up `minioMetaTmpBucket` for the current run.
    	//
    	// /disk1/.minio.sys/tmp-old/
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 11.1K bytes
    - Viewed (0)
Back to top