Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for Mask (0.14 sec)

  1. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        }
        if (hashTableObject instanceof byte[]) {
          byte[] hashTable = (byte[]) hashTableObject;
          int mask = hashTable.length - 1;
          for (int h = Hashing.smear(key.hashCode()); ; h++) {
            h &= mask;
            int keyIndex = hashTable[h] & BYTE_MASK; // unsigned read
            if (keyIndex == BYTE_MASK) { // -1 signed becomes 255 unsigned
              return null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

        int hash = smearedHash(object);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
            mask = resizeTable(mask, CompactHashing.newCapacity(mask), hash, newEntryIndex);
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

        this.lastInKeyInsertionOrder = null;
        this.size = 0;
        this.mask = tableSize - 1;
        this.modCount = 0;
      }
    
      /**
       * Finds and removes {@code entry} from the bucket linked lists in both the key-to-value direction
       * and the value-to-key direction.
       */
      private void delete(BiEntry<K, V> entry) {
        int keyBucket = entry.keyHash & mask;
        BiEntry<K, V> prevBucketEntry = null;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Ascii.java

       * The maximum value of an ASCII character.
       *
       * @since 9.0 (was type {@code int} before 12.0)
       */
      public static final char MAX = 127;
    
      /** A bit mask which selects the bit encoding ASCII character case. */
      private static final char CASE_MASK = 0x20;
    
      /**
       * Returns a copy of the input string in which all {@linkplain #isUpperCase(char) uppercase ASCII
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

            this.hashTable = hashTable;
            int mask = hashTable.length - 1;
            for (ValueSetLink<K, V> entry = firstEntry;
                entry != this;
                entry = entry.getSuccessorInValueSet()) {
              ValueEntry<K, V> valueEntry = (ValueEntry<K, V>) entry;
              int bucket = valueEntry.smearedValueHash & mask;
              valueEntry.nextInValueBucket = hashTable[bucket];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashMap.java

        int hash = smearedHash(key);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
        int next = CompactHashing.tableGet(requireTable(), tableIndex);
        if (next == UNSET) { // uninitialized bucket
          if (newSize > mask) {
            // Resize and add new entry
            mask = resizeTable(mask, CompactHashing.newCapacity(mask), hash, newEntryIndex);
          } else {
    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)
  7. android/guava/src/com/google/common/util/concurrent/Striped.java

        final int mask;
    
        PowerOfTwoStriped(int stripes) {
          Preconditions.checkArgument(stripes > 0, "Stripes must be positive");
          this.mask = stripes > Ints.MAX_POWER_OF_TWO ? ALL_SET : ceilToPowerOfTwo(stripes) - 1;
        }
    
        @Override
        final int indexFor(Object key) {
          int hash = smear(key.hashCode());
          return hash & mask;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      static final float DEFAULT_LOAD_FACTOR = 1.0f;
    
      /** Bitmask that selects the low 32 bits. */
      private static final long NEXT_MASK = (1L << 32) - 1;
    
      /** Bitmask that selects the high 32 bits. */
      private static final long HASH_MASK = ~NEXT_MASK;
    
      static final int DEFAULT_SIZE = 3;
    
      // used to indicate blank table entries
      static final int UNSET = -1;
    
      /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInts.java

     * primitive utilities</a>.
     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class UnsignedInts {
      static final long INT_MASK = 0xffffffffL;
    
      private UnsignedInts() {}
    
      static int flip(int value) {
        return value ^ Integer.MIN_VALUE;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                 * that least significant nonzero byte.
                 */
                int n = Long.numberOfTrailingZeros(lw ^ rw) & ~0x7;
                return ((int) ((lw >>> n) & UNSIGNED_MASK)) - ((int) ((rw >>> n) & UNSIGNED_MASK));
              }
            }
    
            // The epilogue to cover the last (minLength % stride) elements.
            for (; i < minLength; i++) {
    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)
Back to top