- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for referenceCrc (0.12 sec)
-
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
Random r = new Random(1234567); for (int length = 0; length < 1000; length++) { byte[] bytes = new byte[length]; r.nextBytes(bytes); assertCrc(referenceCrc(bytes), bytes); } } private static int referenceCrc(byte[] bytes) { int crc = ~0; for (byte b : bytes) { crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.BYTE_TABLE[(crc ^ b) & 0xFF]; } return ~crc;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
Random r = new Random(1234567); for (int length = 0; length < 1000; length++) { byte[] bytes = new byte[length]; r.nextBytes(bytes); assertCrc(referenceCrc(bytes), bytes); } } private static int referenceCrc(byte[] bytes) { int crc = ~0; for (byte b : bytes) { crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.BYTE_TABLE[(crc ^ b) & 0xFF]; } return ~crc;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 6.5K bytes - Viewed (0)