Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Fingerprint2011 (0.14 sec)

  1. guava/src/com/google/common/hash/Fingerprint2011.java

    import static java.lang.Long.rotateRight;
    
    import com.google.common.annotations.VisibleForTesting;
    
    /**
     * Implementation of Geoff Pike's fingerprint2011 hash function. See {@link Hashing#fingerprint2011}
     * for information on the behaviour of the algorithm.
     *
     * <p>On Intel Core2 2.66, on 1000 bytes, fingerprint2011 takes 0.9 microseconds compared to
     * fingerprint at 4.0 microseconds and md5 at 4.5 microseconds.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

        }
        return result;
      }
    
      // Fingerprint2011
    
      @Benchmark
      byte fingerprintHashFunction(int reps) {
        return runHashFunction(reps, Hashing.fingerprint2011());
      }
    
      @Benchmark
      byte fingerprintChecksum(int reps) throws Exception {
        byte result = 0x01;
        for (int i = 0; i < reps; i++) {
          HashCode checksum = new Fingerprint2011().hashBytes(testBytes, 0, testBytes.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 16:53:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        byte[] bytes = "test".getBytes(UTF_8);
        assertEquals(
            1618900948208871284L, Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1));
    
        bytes = "test test test".getBytes(UTF_8);
        assertEquals(
            UnsignedLong.valueOf("12313169684067793560").longValue(),
            Fingerprint2011.murmurHash64WithSeed(bytes, 0, bytes.length, 1));
      }
    
      public void testPutNonChars() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/hash/ChecksumBenchmark.java

        }
        return result;
      }
    
      // Fingerprint2011
    
      @Benchmark
      byte fingerprintHashFunction(int reps) {
        return runHashFunction(reps, Hashing.fingerprint2011());
      }
    
      @Benchmark
      byte fingerprintChecksum(int reps) throws Exception {
        byte result = 0x01;
        for (int i = 0; i < reps; i++) {
          HashCode checksum = new Fingerprint2011().hashBytes(testBytes, 0, testBytes.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 16:53:43 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashingTest.java

        HashTestUtils.check2BitAvalanche(Hashing.fingerprint2011(), 100, 0.4);
        HashTestUtils.checkAvalanche(Hashing.fingerprint2011(), 100, 0.4);
        HashTestUtils.checkNo2BitCharacteristics(Hashing.fingerprint2011());
        HashTestUtils.checkNoFunnels(Hashing.fingerprint2011());
        HashTestUtils.assertInvariants(Hashing.fingerprint2011());
        assertEquals("Hashing.fingerprint2011()", Hashing.fingerprint2011().toString());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Hashing.java

       * <a href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>.
       *
       * @since 31.1
       */
      public static HashFunction fingerprint2011() {
        return Fingerprint2011.FINGERPRINT_2011;
      }
    
      /**
       * Assigns to {@code hashCode} a "bucket" in the range {@code [0, buckets)}, in a uniform manner
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top