Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for shiest (0.21 sec)

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

            int remainingPowersOf2 = 32;
            do {
              int shift = min(remainingPowersOf2, Long.numberOfLeadingZeros(a));
              // shift is either the number of powers of 2 left to multiply a by, or the biggest shift
              // possible while keeping a in an unsigned long.
              a = UnsignedLongs.remainder(a << shift, m);
              remainingPowersOf2 -= shift;
            } while (remainingPowersOf2 > 0);
            return a;
    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. guava/src/com/google/common/cache/LocalCache.java

      /**
       * Mask value for indexing into segments. The upper bits of a key's hash code are used to choose
       * the segment.
       */
      final int segmentMask;
    
      /**
       * Shift value for indexing within segments. Helps prevent entries that end up in the same segment
       * from also ending up in the same bucket.
       */
      final int segmentShift;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/TempFileCreator.java

          /*
           * I assume that this check can't fail because JELLY_BEAN will be present only if we're
           * running under Jelly Bean or higher. But it seems safest to check.
           */
          if (version < jellyBean) {
            return new ThrowingCreator();
          }
    
          // Don't merge these catch() blocks, let alone use ReflectiveOperationException directly:
          // b/65343391
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ReaderInputStream.java

        // 1) array has space available on right-hand side (between limit and capacity)
        // 2) array has space available on left-hand side (before position)
        // 3) array has no space available
        //
        // In case 2 we shift the existing chars to the left, and in case 3 we create a bigger
        // array, then they both become case 1.
    
        if (availableCapacity(charBuffer) == 0) {
          if (charBuffer.position() > 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                 * 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.
                 */
                int n = Long.numberOfTrailingZeros(lw ^ rw) & ~0x7;
    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/base/CharMatcher.java

        static final int MULTIPLIER = 1682554634;
        static final int SHIFT = Integer.numberOfLeadingZeros(TABLE.length() - 1);
    
        static final CharMatcher INSTANCE = new Whitespace();
    
        Whitespace() {
          super("CharMatcher.whitespace()");
        }
    
        @Override
        public boolean matches(char c) {
          return TABLE.charAt((MULTIPLIER * c) >>> SHIFT) == c;
        }
    
    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)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

      // Fields
    
      /**
       * Mask value for indexing into segments. The upper bits of a key's hash code are used to choose
       * the segment.
       */
      final transient int segmentMask;
    
      /**
       * Shift value for indexing within segments. Helps prevent entries that end up in the same segment
       * from also ending up in the same bucket.
       */
      final transient int segmentShift;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

        long result = 0;
        // Due to the way we shift, we can stop iterating once we've run out of data, the rest
        // of the result already being filled with zeros.
    
        // This loop is critical to performance, so please check HashBenchmark if altering it.
        int limit = Math.min(length, 8);
        for (int i = 0; i < limit; i++) {
          // Shift value left while iterating logically through the array.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/CharMatcher.java

        static final int MULTIPLIER = 1682554634;
        static final int SHIFT = Integer.numberOfLeadingZeros(TABLE.length() - 1);
    
        static final CharMatcher INSTANCE = new Whitespace();
    
        Whitespace() {
          super("CharMatcher.whitespace()");
        }
    
        @Override
        public boolean matches(char c) {
          return TABLE.charAt((MULTIPLIER * c) >>> SHIFT) == c;
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/BigIntegerMath.java

          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).
           */
          sqrt0 = sqrtApproxWithDoubles(x.shiftRight(shift)).shiftLeft(shift >> 1);
        }
    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)
Back to top