Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for h1 (0.13 sec)

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

              throw new AssertionError("Should never get here.");
          }
          h1 ^= mixK1(k1);
          h2 ^= mixK2(k2);
        }
    
        @Override
        protected HashCode makeHash() {
          h1 ^= length;
          h2 ^= length;
    
          h1 += h2;
          h2 += h1;
    
          h1 = fmix64(h1);
          h2 = fmix64(h2);
    
          h1 += h2;
          h2 += h1;
    
          return HashCode.fromBytesNoCopy(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ObjectsTest.java

        assertFalse(Objects.equal("1", 1));
      }
    
      public void testHashCode() throws Exception {
        int h1 = Objects.hashCode(1, "two", 3.0);
        int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0));
        // repeatable
        assertEquals(h1, h2);
    
        // These don't strictly need to be true, but they're nice properties.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

      }
    
      private static int mixH1(int h1, int k1) {
        h1 ^= k1;
        h1 = Integer.rotateLeft(h1, 13);
        h1 = h1 * 5 + 0xe6546b64;
        return h1;
      }
    
      // Finalization mix - force all bits of a hash block to avalanche
      private static HashCode fmix(int h1, int length) {
        h1 ^= length;
        h1 ^= h1 >>> 16;
        h1 *= 0x85ebca6b;
        h1 ^= h1 >>> 13;
        h1 *= 0xc2b2ae35;
        h1 ^= h1 >>> 16;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

      private static void assertPutString(char[] chars) {
        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
        h2.putUnencodedChars(s);
        assertEquals(h1.hash(), h2.hash());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

      private static void assertPutString(char[] chars) {
        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
        h2.putUnencodedChars(s);
        assertEquals(h1.hash(), h2.hash());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ObjectsTest.java

        assertFalse(Objects.equal("1", 1));
      }
    
      public void testHashCode() throws Exception {
        int h1 = Objects.hashCode(1, "two", 3.0);
        int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0));
        // repeatable
        assertEquals(h1, h2);
    
        // These don't strictly need to be true, but they're nice properties.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
Back to top