Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for 128 (0.37 sec)

  1. android/guava/src/com/google/common/hash/Hashing.java

        }
        if (bits <= 128) {
          return Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        }
    
        // Otherwise, join together some 128-bit murmur3s
        int hashFunctionsNeeded = (bits + 127) / 128;
        HashFunction[] hashFunctions = new HashFunction[hashFunctionsNeeded];
        hashFunctions[0] = Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        int seed = GOOD_FAST_HASH_SEED;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      private static final byte[] VALUES = {LEAST, 127, (byte) 128, (byte) 129, GREATEST};
    
      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

      public void testMin() {
        assertThat(SignedBytes.min(LEAST)).isEqualTo(LEAST);
        assertThat(SignedBytes.min(GREATEST)).isEqualTo(GREATEST);
        assertThat(SignedBytes.min((byte) 0, (byte) -128, (byte) -1, (byte) 127, (byte) 1))
            .isEqualTo((byte) -128);
      }
    
      public void testJoin() {
        assertThat(SignedBytes.join(",", EMPTY)).isEmpty();
        assertThat(SignedBytes.join(",", ARRAY1)).isEqualTo("1");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/Utf8Test.java

          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("Unpaired surrogate at index " + invalidCodePointIndex);
        }
      }
    
      // 128 - [chars 0x0000 to 0x007f]
      private static final long ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x007f - 0x0000 + 1;
    
      // 128
      private static final long EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT =
          ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 1920 [chars 0x0080 to 0x07FF]
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      private static final byte[] VALUES = {LEAST, 127, (byte) 128, (byte) 129, GREATEST};
    
      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
        assertThat(UnsignedBytes.toInt((byte) 127)).isEqualTo(127);
        assertThat(UnsignedBytes.toInt((byte) -128)).isEqualTo(128);
        assertThat(UnsignedBytes.toInt((byte) -127)).isEqualTo(129);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        verifyTableSize(100, 2, 4);
        verifyTableSize(100, 5, 8);
        verifyTableSize(100, 33, 64);
        verifyTableSize(60, 60, 128);
        verifyTableSize(120, 60, 256);
        // if the table is only double the necessary size, we don't bother resizing it
        verifyTableSize(180, 60, 128);
        // but if it's even bigger than double, we rebuild the table
        verifyTableSize(17, 17, 32);
        verifyTableSize(17, 16, 32);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/Utf8Test.java

          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("Unpaired surrogate at index " + invalidCodePointIndex);
        }
      }
    
      // 128 - [chars 0x0000 to 0x007f]
      private static final long ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x007f - 0x0000 + 1;
    
      // 128
      private static final long EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT =
          ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 1920 [chars 0x0080 to 0x07FF]
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

              }
            };
        assertThat(actual)
            .containsExactly(
                1,
                2,
                4,
                8,
                16,
                32,
                64,
                128,
                256,
                512,
                1024,
                2048,
                4096,
                8192,
                16384,
                32768,
                65536,
                131072,
                262144,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

              }
            };
        assertThat(actual)
            .containsExactly(
                1,
                2,
                4,
                8,
                16,
                32,
                64,
                128,
                256,
                512,
                1024,
                2048,
                4096,
                8192,
                16384,
                32768,
                65536,
                131072,
                262144,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      private static final byte ABSENT = -1;
    
      // Max size is halved due to indexing into double-sized alternatingKeysAndValues
      private static final int BYTE_MAX_SIZE = 1 << (Byte.SIZE - 1); // 2^7 = 128
      private static final int SHORT_MAX_SIZE = 1 << (Short.SIZE - 1); // 2^15 = 32_768
    
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
    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)
Back to top