Searched refs:padToLong (Results 1 – 6 of 6) sorted by relevance
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashCodeTest.java | 134 assertEquals(0x1111111111111111L, HashCode.fromLong(0x1111111111111111L).padToLong()); in testPadToLong() 135 assertEquals(0x9999999999999999L, HashCode.fromLong(0x9999999999999999L).padToLong()); in testPadToLong() 136 assertEquals(0x0000000011111111L, HashCode.fromInt(0x11111111).padToLong()); in testPadToLong() 137 assertEquals(0x0000000099999999L, HashCode.fromInt(0x99999999).padToLong()); in testPadToLong() 141 assertEquals(0x0000000099999999L, HashCode.fromBytesNoCopy(byteArrayWith9s(4)).padToLong()); in testPadToLongWith4Bytes() 145 assertEquals(0x0000999999999999L, HashCode.fromBytesNoCopy(byteArrayWith9s(6)).padToLong()); in testPadToLongWith6Bytes() 149 assertEquals(0x9999999999999999L, HashCode.fromBytesNoCopy(byteArrayWith9s(8)).padToLong()); in testPadToLongWith8Bytes()
|
D | ChecksumHashFunctionTest.java | 77 assertEquals(value, func.hashBytes(bytes).padToLong()); in assertChecksum()
|
/external/guava/guava/src/com/google/common/hash/ |
D | HashCode.java | 70 public abstract long padToLong(); in padToLong() method in HashCode 155 public long padToLong() { in padToLong() method in HashCode.IntHashCode 219 public long padToLong() { in padToLong() method in HashCode.LongHashCode 288 return padToLong(); in asLong() 292 public long padToLong() { in padToLong() method in HashCode.BytesHashCode
|
D | Hashing.java | 320 return consistentHash(hashCode.padToLong(), buckets); in consistentHash()
|
/external/turbine/javatests/com/google/turbine/zip/ |
D | ZipTest.java | 95 je.setCrc(Hashing.crc32().hashBytes(bytes).padToLong()); in createEntry() 103 result.put(e.name(), Hashing.goodFastHash(128).hashBytes(e.data()).padToLong()); in actual() 118 .padToLong()); in expected()
|
/external/turbine/java/com/google/turbine/main/ |
D | Main.java | 226 je.setCrc(Hashing.crc32().hashBytes(bytes).padToLong()); in addEntry()
|