Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for odd (0.13 sec)

  1. guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      /** Resizes the entries storage if necessary. */
      private void resizeMeMaybe(int newSize) {
        int entriesSize = requireEntries().length;
        if (newSize > entriesSize) {
          // 1.5x but round up to nearest odd (this is optimal for memory consumption on Android)
          int newCapacity =
              Math.min(CompactHashing.MAX_SIZE, (entriesSize + Math.max(1, entriesSize >>> 1)) | 1);
          if (newCapacity != entriesSize) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashSet.java

      }
    
      /** Resizes the entries storage if necessary. */
      private void resizeMeMaybe(int newSize) {
        int entriesSize = requireEntries().length;
        if (newSize > entriesSize) {
          // 1.5x but round up to nearest odd (this is optimal for memory consumption on Android)
          int newCapacity =
              Math.min(CompactHashing.MAX_SIZE, (entriesSize + Math.max(1, entriesSize >>> 1)) | 1);
          if (newCapacity != entriesSize) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top