Home
last modified time | relevance | path

Searched refs:padToLong (Results 1 – 6 of 6) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java134 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()
DChecksumHashFunctionTest.java77 assertEquals(value, func.hashBytes(bytes).padToLong()); in assertChecksum()
/external/guava/guava/src/com/google/common/hash/
DHashCode.java70 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
DHashing.java320 return consistentHash(hashCode.padToLong(), buckets); in consistentHash()
/external/turbine/javatests/com/google/turbine/zip/
DZipTest.java95 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/
DMain.java226 je.setCrc(Hashing.crc32().hashBytes(bytes).padToLong()); in addEntry()