Searched refs:hashFunction (Results 1 – 8 of 8) sorted by relevance
/external/guava/guava-tests/test/com/google/common/hash/ |
D | HashFunctionsTest.java | 41 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 …]
|
D | HashTestUtils.java | 46 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/ |
D | phashtable.c | 93 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/ |
D | rewrite-protocol-type-1.m | 26 @property int (*hashFunction)(const void *item, int (*size)(const void *item));
|
/external/srec/portable/include/ |
D | phashtable.h | 111 PHashFunction hashFunction; member
|
/external/srec/shared/src/ |
D | HashMapImpl.c | 74 hashArgs.hashFunction = PHASH_TABLE_DEFAULT_HASH_FUNCTION; in HashMapCreateBins()
|
/external/srec/seti/sltsEngine/src/ |
D | run_seq_lts.c | 150 hashArgs.hashFunction = HashGetCode; // PHASH_TABLE_DEFAULT_HASH_FUNCTION; in my_PHashTableCreate_FromStrings()
|
/external/srec/srec/crec/ |
D | srec_context.c | 354 hashArgs.hashFunction = HashGetCode; // PHASH_TABLE_DEFAULT_HASH_FUNCTION; in wordmap_create() 2859 hashArgs.hashFunction = HashGetCode; //PHASH_TABLE_DEFAULT_HASH_FUNCTION; in deserializeWordMapV2()
|