Searched refs:fromInt (Results 1 – 12 of 12) sorted by relevance
36 assertEquals(0x0000000011111111L, Hashing.padToLong(HashCodes.fromInt(0x11111111))); in testPadToLong()37 assertEquals(0x0000000099999999L, Hashing.padToLong(HashCodes.fromInt(0x99999999))); in testPadToLong()99 checkSameResult(HashCodes.fromInt(0x99999999), 0x0000000099999999L); in testConsistentHash_ofHashCode()124 Hashing.combineOrdered(ImmutableList.of(HashCodes.fromInt(32), HashCodes.fromLong(32L))); in testCombineOrdered_differentBitLengths()131 HashCode hash31 = HashCodes.fromInt(31); in testCombineOrdered()132 HashCode hash32 = HashCodes.fromInt(32); in testCombineOrdered()174 Hashing.combineUnordered(ImmutableList.of(HashCodes.fromInt(32), HashCodes.fromLong(32L))); in testCombineUnordered_differentBitLengths()181 HashCode hash31 = HashCodes.fromInt(31); in testCombineUnordered()182 HashCode hash32 = HashCodes.fromInt(32); in testCombineUnordered()184 assertEquals(HashCodes.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32))); in testCombineUnordered()[all …]
50 HashCode fromInt = HashCodes.fromInt(expected.asInt); in testFromInt() local51 assertExpectedHashCode(expected, fromInt); in testFromInt()
171 return HashCodes.fromInt(0xDeadBeef); in makeHash()
112 public static ItemType fromInt(int itemType) { in fromInt() method in ItemType
70 ItemType itemType = ItemType.fromInt(in.readShort()); in readItem()
29 static HashCode fromInt(int hash) { in fromInt() method in HashCodes
98 return HashCodes.fromInt(h1); in makeHash()
200 function nbv(i) { var r = nbi(); r.fromInt(i); return r; }457 if(q != null) q.fromInt(0);642 BigInteger.prototype.fromInt = bnpFromInt; method in BigInteger731 this.fromInt(0);760 if(a < 2) this.fromInt(1);1271 a.fromInt(lowprimes[i]);
192 function nbv(i) { var r = nbi(); r.fromInt(i); return r; }449 if(q != null) q.fromInt(0);634 BigInteger.prototype.fromInt = bnpFromInt; method in BigInteger723 this.fromInt(0);752 if(a < 2) this.fromInt(1);1263 a.fromInt(lowprimes[i]);