Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for 32 (0.17 sec)

  1. guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

        assertHash32(0x3610A686, CRC_32, "hello");
        assertHash32(0xED81F9F6, CRC_32, "hello ");
        assertHash32(0x4850DDC2, CRC_32, "hello w");
        assertHash32(0x7A2D6005, CRC_32, "hello wo");
        assertHash32(0x1C192672, CRC_32, "hello wor");
        assertHash32(0x414FA339, CRC_32, "The quick brown fox jumps over the lazy dog");
        assertHash32(0x4400B5BC, CRC_32, "The quick brown fox jumps over the lazy cog");
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 14:33:12 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

      }
    
      public void testAscending() {
        // Test 32 byte arrays of ascending.
        byte[] ascending = new byte[32];
        for (int i = 0; i < 32; i++) {
          ascending[i] = (byte) i;
        }
        assertCrc(0x46dd794e, ascending);
      }
    
      public void testDescending() {
        // Test 32 byte arrays of descending.
        byte[] descending = new byte[32];
        for (int i = 0; i < 32; i++) {
          descending[i] = (byte) (31 - i);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 23 18:30:33 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

       * algorithm, x86 variant</a> (little-endian variant), using the given seed value.
       *
       * <p>The exact C++ equivalent is the MurmurHash3_x86_32 function (Murmur3A).
       *
       * <p>This method is called {@code murmur3_32_fixed} because it fixes a bug in the {@code
       * HashFunction} returned by the original {@code murmur3_32} method.
       *
       * @since 31.0
       */
    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)
  4. android/guava-tests/test/com/google/common/hash/HashFunctionEnum.java

      ADLER32(Hashing.adler32()),
      CRC32(Hashing.crc32()),
      GOOD_FAST_HASH_32(Hashing.goodFastHash(32)),
      GOOD_FAST_HASH_64(Hashing.goodFastHash(64)),
      GOOD_FAST_HASH_128(Hashing.goodFastHash(128)),
      GOOD_FAST_HASH_256(Hashing.goodFastHash(256)),
      MD5(Hashing.md5()),
      MURMUR3_128(Hashing.murmur3_128()),
      MURMUR3_32(Hashing.murmur3_32()),
      MURMUR3_32_FIXED(Hashing.murmur3_32_fixed()),
      SHA1(Hashing.sha1()),
      SHA256(Hashing.sha256()),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/UnsignedInteger.java

       * returns the low 32 bits of the result.
       *
       * @since 14.0
       */
      public UnsignedInteger plus(UnsignedInteger val) {
        return fromIntBits(this.value + checkNotNull(val).value);
      }
    
      /**
       * Returns the result of subtracting this and {@code val}. If the result would be negative,
       * returns the low 32 bits of the result.
       *
       * @since 14.0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 23 18:45:50 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * value}.
       *
       * @param value any {@code long} value
       * @return {@code 2^32 - 1} if {@code value >= 2^32}, {@code 0} if {@code value <= 0}, and {@code
       *     value} cast to {@code int} otherwise
       * @since 21.0
       */
      public static int saturatedCast(long value) {
        if (value <= 0) {
          return 0;
        } else if (value >= (1L << 32)) {
          return -1;
        } else {
          return (int) value;
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

        assertHash(593689054, murmur3_32().hashInt(0));
        assertHash(-189366624, murmur3_32().hashInt(-42));
        assertHash(-1134849565, murmur3_32().hashInt(42));
        assertHash(-1718298732, murmur3_32().hashInt(Integer.MIN_VALUE));
        assertHash(-1653689534, murmur3_32().hashInt(Integer.MAX_VALUE));
      }
    
      public void testKnownLongInputs() {
        assertHash(1669671676, murmur3_32().hashLong(0L));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

      }
    
      private static final int ENDPOINT = -2;
    
      /**
       * Contains the link pointers corresponding with the entries, in the range of [0, size()). The
       * high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer
       * (pointing to the next entry in the linked list). The pointers in [size(), entries.length) are
       * all "null" (UNSET).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testMurmur3_32() {
        HashTestUtils.check2BitAvalanche(Hashing.murmur3_32(), 250, 0.20);
        HashTestUtils.checkAvalanche(Hashing.murmur3_32(), 250, 0.17);
        HashTestUtils.checkNo2BitCharacteristics(Hashing.murmur3_32());
        HashTestUtils.checkNoFunnels(Hashing.murmur3_32());
        HashTestUtils.assertInvariants(Hashing.murmur3_32());
        assertEquals("Hashing.murmur3_32(0)", Hashing.murmur3_32().toString());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

        assertHash32(0x3610A686, CRC_32, "hello");
        assertHash32(0xED81F9F6, CRC_32, "hello ");
        assertHash32(0x4850DDC2, CRC_32, "hello w");
        assertHash32(0x7A2D6005, CRC_32, "hello wo");
        assertHash32(0x1C192672, CRC_32, "hello wor");
        assertHash32(0x414FA339, CRC_32, "The quick brown fox jumps over the lazy dog");
        assertHash32(0x4400B5BC, CRC_32, "The quick brown fox jumps over the lazy cog");
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 14:33:12 GMT 2018
    - 3.1K bytes
    - Viewed (0)
Back to top