Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for floor (0.17 sec)

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

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Long.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    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/math/IntMath.java

         * can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x)) is 6,
         * then 64 <= x < 128, so floor(log10(x)) is either 1 or 2.
         */
        int y = maxLog10ForLeadingZeros[Integer.numberOfLeadingZeros(x)];
        /*
         * y is the higher of the two possible values of floor(log10(x)). If x < 10^y, then we want the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/BigIntegerMath.java

          return LongMath.log10(x.longValue(), mode);
        }
    
        int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10);
        BigInteger approxPow = BigInteger.TEN.pow(approxLog10);
        int approxCmp = approxPow.compareTo(x);
    
        /*
         * We adjust approxLog10 and approxPow until they're equal to floor(log10(x)) and
         * 10^floor(log10(x)).
         */
    
        if (approxCmp > 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. src/cmd/asm/internal/asm/testdata/386.s

    //	CALL	(AX*4) // TODO: This line is silently dropped on the floor!
    	CALL	foo+4(SB)(AX*4)
    	CALL	*4(SP) // CALL 4(SP)
    	CALL	*(AX) // CALL (AX)
    	CALL	*(SP) // CALL (SP)
    //	CALL	*(AX*4) // TODO: This line is silently dropped on the floor!
    	CALL	*(AX)(AX*4) // CALL (AX)(AX*4)
    	CALL	4(SP)
    	CALL	(AX)
    	CALL	(SP)
    //	CALL	(AX*4) // TODO: This line is silently dropped on the floor!
    	JCS	2(PC)
    	JMP	(AX)(AX*4)
    
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 18:57:21 GMT 2019
    - 2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFloorHole() {
        resetWithHole();
        assertEquals(a, navigableSet.floor(a));
        assertEquals(a, navigableSet.floor(b));
        assertEquals(c, navigableSet.floor(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testCeilingHole() {
        resetWithHole();
        assertEquals(a, navigableSet.ceiling(a));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      /* Relies on the correctness of sqrt(int, FLOOR). */
      @GwtIncompatible // sqrt
      public void testSqrtExactMatchesFloorOrThrows() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          int floor = IntMath.sqrt(x, FLOOR);
          // We only expect an exception if x was not a perfect square.
          boolean isPerfectSquare = (floor * floor == x);
          try {
            assertEquals(floor, IntMath.sqrt(x, UNNECESSARY));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

      }
    
      @Override
      @CheckForNull
      public E floor(@ParametricNullness E e) {
        return delegate().floor(e);
      }
    
      /**
       * A sensible definition of {@link #floor} in terms of the {@code descendingIterator} method of
       * {@link #headSet(Object, boolean)}. If you override {@link #headSet(Object, boolean)}, you may
       * wish to override {@link #floor} to forward to this implementation.
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
       * the result is chosen uniformly at random in [0, numBits), and then the result is chosen in that
       * range uniformly at random. Zero is treated as having log2 == 0.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingNavigableSet.java

      }
    
      @Override
      @CheckForNull
      public E floor(@ParametricNullness E e) {
        return delegate().floor(e);
      }
    
      /**
       * A sensible definition of {@link #floor} in terms of the {@code descendingIterator} method of
       * {@link #headSet(Object, boolean)}. If you override {@link #headSet(Object, boolean)}, you may
       * wish to override {@link #floor} to forward to this implementation.
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/amd64.s

    	JCS	2(PC)
    	JMP	*(R12) // JMP (R12)
    	JCS	2(PC)
    //	JMP	*(R12*4) // TODO: This line is silently dropped on the floor!
    	JCS	2(PC)
    	JMP	*(R12)(R13*4) // JMP (R12)(R13*4)
    	JCS	2(PC)
    	JMP	*(AX) // JMP (AX)
    	JCS	2(PC)
    	JMP	*(SP) // JMP (SP)
    	JCS	2(PC)
    //	JMP	*(AX*4) // TODO: This line is silently dropped on the floor!
    	JCS	2(PC)
    	JMP	*(AX)(AX*4) // JMP (AX)(AX*4)
    	JCS	2(PC)
    	JMP	4(SP)
    	JCS	2(PC)
    	JMP	(R12)
    	JCS	2(PC)
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 18:57:21 GMT 2019
    - 3.3K bytes
    - Viewed (0)
Back to top