Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Fingerprint2011 (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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