Home
last modified time | relevance | path

Searched refs:hashFunction (Results 1 – 8 of 8) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DHashFunctionsTest.java41 private static void assertInvariants(HashFunction hashFunction) { in assertInvariants() argument
46 HashCode hashcode1 = hashFunction.newHasher().putObject(o, HashTestUtils.BAD_FUNNEL).hash(); in assertInvariants()
47 HashCode hashcode2 = hashFunction.newHasher().putObject(o, HashTestUtils.BAD_FUNNEL).hash(); in assertInvariants()
49 assertEquals(hashFunction.bits(), hashcode1.bits()); in assertInvariants()
50 assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8); in assertInvariants()
55 assertHashBytesThrowsCorrectExceptions(hashFunction); in assertInvariants()
58 private static void assertHashBytesThrowsCorrectExceptions(HashFunction hashFunction) { in assertHashBytesThrowsCorrectExceptions() argument
59 hashFunction.hashBytes(new byte[64], 0, 0); in assertHashBytesThrowsCorrectExceptions()
62 hashFunction.hashBytes(new byte[128], -1, 128); in assertHashBytesThrowsCorrectExceptions()
66 hashFunction.hashBytes(new byte[128], 64, 256 /* too long len */); in assertHashBytesThrowsCorrectExceptions()
[all …]
DHashTestUtils.java46 static void verifyHashFunction(HashFn hashFunction, int hashbits, int expected) { in verifyHashFunction() argument
56 byte[] hash = hashFunction.hash(Arrays.copyOf(key, i), seed); in verifyHashFunction()
61 byte[] result = hashFunction.hash(hashes, 0); in verifyHashFunction()
/external/srec/portable/src/
Dphashtable.c93 tmp->args.hashFunction = PHASH_TABLE_DEFAULT_HASH_FUNCTION; in PHashTableCreate()
100 if (tmp->args.hashFunction == PHASH_TABLE_DEFAULT_HASH_FUNCTION) in PHashTableCreate()
101 tmp->args.hashFunction = hashString; in PHashTableCreate()
217 hashCode = table->args.hashFunction(key); in PHashTableGetValue()
264 hashCode = table->args.hashFunction(key); in PHashTableGetEntry()
348 hashCode = table->args.hashFunction(key); in PHashTablePutValue()
437 hashCode = table->args.hashFunction(key); in PHashTableRemoveValue()
/external/clang/test/Rewriter/
Drewrite-protocol-type-1.m26 @property int (*hashFunction)(const void *item, int (*size)(const void *item));
/external/srec/portable/include/
Dphashtable.h111 PHashFunction hashFunction; member
/external/srec/shared/src/
DHashMapImpl.c74 hashArgs.hashFunction = PHASH_TABLE_DEFAULT_HASH_FUNCTION; in HashMapCreateBins()
/external/srec/seti/sltsEngine/src/
Drun_seq_lts.c150 hashArgs.hashFunction = HashGetCode; // PHASH_TABLE_DEFAULT_HASH_FUNCTION; in my_PHashTableCreate_FromStrings()
/external/srec/srec/crec/
Dsrec_context.c354 hashArgs.hashFunction = HashGetCode; // PHASH_TABLE_DEFAULT_HASH_FUNCTION; in wordmap_create()
2859 hashArgs.hashFunction = HashGetCode; //PHASH_TABLE_DEFAULT_HASH_FUNCTION; in deserializeWordMapV2()