Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for significand (0.26 sec)

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

        if (MIN_LONG_AS_DOUBLE - x < 1.0 & x < MAX_LONG_AS_DOUBLE_PLUS_ONE) {
          return BigInteger.valueOf((long) x);
        }
        int exponent = getExponent(x);
        long significand = getSignificand(x);
        BigInteger result = BigInteger.valueOf(significand).shiftLeft(exponent - SIGNIFICAND_BITS);
        return (x < 0) ? result.negate() : result;
      }
    
      /**
       * Returns {@code true} if {@code x} is exactly equal to {@code 2^k} for some finite integer
    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)
  2. 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;
    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)
  3. 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;
    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)
  4. android/guava/src/com/google/common/math/BigIntegerMath.java

         */
        BigInteger sqrt0;
        int log2 = log2(x, FLOOR);
        if (log2 < Double.MAX_EXPONENT) {
          sqrt0 = sqrtApproxWithDoubles(x);
        } else {
          int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even!
          /*
           * We have that x / 2^shift < 2^54. Our initial approximation to sqrtFloor(x) will be
           * 2^(shift/2) * sqrtApproxWithDoubles(x / 2^shift).
           */
    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. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                 * corresponds to the least significant nonzero byte in lw ^ rw, since lw and rw are
                 * little-endian. Long.numberOfTrailingZeros(diff) tells us the least significant
                 * nonzero bit, and zeroing out the first three bits of L.nTZ gives us the shift to get
                 * that least significant nonzero byte.
                 */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *     r.run();
       *   }
       * }
       * }</pre>
       *
       * <p>This should be preferred to {@link #newDirectExecutorService()} because implementing the
       * {@link ExecutorService} subinterface necessitates significant performance overhead.
       *
       * @since 18.0
       */
      public static Executor directExecutor() {
        return DirectExecutor.INSTANCE;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InetAddresses.java

                "BigInteger cannot be converted to InetAddress because it has more than %d"
                    + " bytes: %s",
                numBytes, address);
          }
        }
    
        // Copy the bytes into the least significant positions.
        System.arraycopy(addressBytes, srcPos, targetCopyArray, destPos, copyLength);
    
        try {
          return InetAddress.getByAddress(targetCopyArray);
        } catch (UnknownHostException impossible) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/base/CharMatcher.java

          tmp[5 - i] = hex.charAt(c & 0xF);
          c = (char) (c >> 4);
        }
        return String.copyValueOf(tmp);
      }
    
      // Fast matchers
    
      /** A matcher for which precomputation will not yield any significant benefit. */
      abstract static class FastMatcher extends CharMatcher {
    
        @Override
        public final CharMatcher precomputed() {
          return this;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Comparators.java

     * comparator utilities, see either {@code Comparator} itself (for Java 8+), or {@code
     * com.google.common.collect.Ordering} (otherwise).
     *
     * <h3>Relationship to {@code Ordering}</h3>
     *
     * <p>In light of the significant enhancements to {@code Comparator} in Java 8, the overwhelming
     * majority of usages of {@code Ordering} can be written using only built-in JDK APIs. This class is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Monitor.java

     *
     * <p>This class is intended as a replacement for {@link ReentrantLock}. Code using {@code Monitor}
     * is less error-prone and more readable than code using {@code ReentrantLock}, without significant
     * performance loss. {@code Monitor} even has the potential for performance gain by optimizing the
     * evaluation and signaling of conditions. Signaling is entirely <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
Back to top