Home
last modified time | relevance | path

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

12

/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/chromium_org/third_party/angle/src/compiler/translator/
DOutputESSL.cpp11 ShHashFunction64 hashFunction, in TOutputESSL() argument
15 : TOutputGLSLBase(objSink, clampingStrategy, hashFunction, nameMap, symbolTable, shaderVersion) in TOutputESSL()
DOutputGLSL.cpp11 ShHashFunction64 hashFunction, in TOutputGLSL() argument
15 : TOutputGLSLBase(objSink, clampingStrategy, hashFunction, nameMap, symbolTable, shaderVersion) in TOutputGLSL()
DCompiler.h79 ShHashFunction64 getHashFunction() const { return hashFunction; } in getHashFunction()
175 ShHashFunction64 hashFunction; variable
DOutputESSL.h17 ShHashFunction64 hashFunction,
DVariableInfo.cpp134 ShHashFunction64 hashFunction) in CollectVariables() argument
143 mHashFunction(hashFunction) in CollectVariables()
254 NameHashingTraverser(ShHashFunction64 hashFunction) in NameHashingTraverser() argument
255 : mHashFunction(hashFunction) in NameHashingTraverser()
DOutputGLSL.h17 ShHashFunction64 hashFunction,
DVariableInfo.h26 ShHashFunction64 hashFunction);
DOutputGLSLBase.h21 ShHashFunction64 hashFunction,
DCompiler.cpp136 hashFunction = resources.HashFunction; in Init()
510 hashFunction); in collectVariables()
DIntermNode.cpp1098 TString TIntermTraverser::hash(const TString &name, ShHashFunction64 hashFunction) in hash() argument
1100 if (hashFunction == NULL || name.empty()) in hash()
1102 khronos_uint64_t number = (*hashFunction)(name.c_str(), name.length()); in hash()
DOutputGLSLBase.cpp45 ShHashFunction64 hashFunction, in TOutputGLSLBase() argument
53 mHashFunction(hashFunction), in TOutputGLSLBase()
DIntermNode.h732 static TString hash(const TString& name, ShHashFunction64 hashFunction);
/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/chromium_org/third_party/sqlite/src/ext/fts2/
Dfts2_hash.c140 static int (*hashFunction(int keyClass))(const void*,int){ in hashFunction() function
205 xHash = hashFunction(pH->keyClass); in rehash()
289 xHash = hashFunction(pH->keyClass); in sqlite3Fts2HashFind()
325 xHash = hashFunction(pH->keyClass); in sqlite3Fts2HashInsert()
/external/chromium_org/third_party/sqlite/src/ext/fts1/
Dfts1_hash.c135 static int (*hashFunction(int keyClass))(const void*,int){ in hashFunction() function
200 xHash = hashFunction(pH->keyClass); in rehash()
284 xHash = hashFunction(pH->keyClass); in sqlite3Fts1HashFind()
320 xHash = hashFunction(pH->keyClass); in sqlite3Fts1HashInsert()
Dft_hash.c155 static int (*hashFunction(int keyClass))(const void*,int){ in hashFunction() function
242 xHash = hashFunction(pH->keyClass); in rehash()
326 xHash = hashFunction(pH->keyClass); in HashFind()
357 xHash = hashFunction(pH->keyClass); in HashInsert()
/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/clang/test/ARCMT/
Dobjcmt-migrate-all.m129 @property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
Dobjcmt-ns-returns-inner-pointer.m128 @property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
Dobjcmt-migrate-all.m.result129 @property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
Dobjcmt-ns-returns-inner-pointer.m.result128 @property NSUInteger (*hashFunction)(const void *item, NSUInteger (*size)(const void *item));
/external/srec/shared/src/
DHashMapImpl.c74 hashArgs.hashFunction = PHASH_TABLE_DEFAULT_HASH_FUNCTION; in HashMapCreateBins()

12