Searched defs:hash_key (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/net/disk_cache/simple/
H A Dsimple_util_unittest.cc49 uint64 hash_key = 0; local
50 EXPECT_TRUE(GetEntryHashKeyFromHexString("0000000005f5e0ff", &hash_key));
51 EXPECT_EQ(GG_UINT64_C(99999999), hash_key);
53 EXPECT_TRUE(GetEntryHashKeyFromHexString("7ffffffffffffffF", &hash_key));
54 EXPECT_EQ(GG_UINT64_C(9223372036854775807), hash_key);
56 EXPECT_TRUE(GetEntryHashKeyFromHexString("8000000000000000", &hash_key));
57 EXPECT_EQ(GG_UINT64_C(9223372036854775808), hash_key);
59 EXPECT_TRUE(GetEntryHashKeyFromHexString("FFFFFFFFFFFFFFFF", &hash_key));
60 EXPECT_EQ(GG_UINT64_C(18446744073709551615), hash_key);
63 EXPECT_FALSE(GetEntryHashKeyFromHexString("FFFFFFFFFFFFFFF", &hash_key));
[all...]
H A Dsimple_util.cc21 // Size of the uint64 hash_key number in Hex format in a string.
49 std::string ConvertEntryHashKeyToHexString(uint64 hash_key) { argument
50 const std::string hash_key_str = base::StringPrintf("%016" PRIx64, hash_key);
62 bool GetEntryHashKeyFromHexString(const base::StringPiece& hash_key, argument
64 if (hash_key.size() != kEntryHashKeyAsHexStringSize) {
67 return base::HexStringToUInt64(hash_key, hash_key_out);
H A Dsimple_index_unittest.cc141 void InsertIntoIndexFileReturn(uint64 hash_key, argument
145 hash_key, EntryMetadata(last_used_time, entry_size)));
598 uint64 hash_key = kHash1; local
601 EXPECT_EQ(hash_key, entry_set.begin()->first);
H A Dsimple_index_file.cc91 uint64 hash_key = 0; local
92 if (!simple_util::GetEntryHashKeyFromHexString(hash_string, &hash_key)) {
113 SimpleIndex::EntrySet::iterator it = entries->find(hash_key);
116 hash_key,
410 uint64 hash_key; local
412 if (!pickle_it.ReadUInt64(&hash_key) ||
418 SimpleIndex::InsertInEntrySet(hash_key, entry_metadata, entries);
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/translate/
H A Dtranslate_cache.c82 unsigned hash_key; local
86 hash_key = cso_construct_key(key, size);
87 return hash_key;
93 unsigned hash_key = create_key(key); local
96 hash_key,
102 cso_hash_insert(cache->hash, hash_key, translate);
/external/mesa3d/src/gallium/auxiliary/translate/
H A Dtranslate_cache.c82 unsigned hash_key; local
86 hash_key = cso_construct_key(key, size);
87 return hash_key;
93 unsigned hash_key = create_key(key); local
96 hash_key,
102 cso_hash_insert(cache->hash, hash_key, translate);
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dprog_cache.c58 hash_key(const void *key, GLuint key_size) function
182 const GLuint hash = hash_key(key, keysize);
203 const GLuint hash = hash_key(key, keysize);
231 const GLuint hash = hash_key(key, keysize);
/external/mesa3d/src/mesa/program/
H A Dprog_cache.c58 hash_key(const void *key, GLuint key_size) function
182 const GLuint hash = hash_key(key, keysize);
203 const GLuint hash = hash_key(key, keysize);
231 const GLuint hash = hash_key(key, keysize);
/external/chromium/chrome/browser/safe_browsing/
H A Dbloom_filter.cc16 uint32 HashMix(BloomFilter::HashKey hash_key, uint32 c) { argument
17 uint32 a = static_cast<uint32>(hash_key) & 0xFFFFFFFF;
18 uint32 b = static_cast<uint32>(hash_key >> 32) & 0xFFFFFFFF;
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/cso_cache/
H A Dcso_cache.c48 static unsigned hash_key(const void *key, unsigned key_size) function
63 static unsigned hash_key(const unsigned char *p, int n) function
80 return hash_key((item), item_size);
187 unsigned hash_key, enum cso_cache_type type,
193 return cso_hash_insert(hash, hash_key, state);
198 unsigned hash_key, enum cso_cache_type type)
202 return cso_hash_find(hash, hash_key);
207 unsigned hash_key,
211 struct cso_hash_iter iter = cso_hash_find(hash, hash_key);
226 unsigned hash_key, enu
186 cso_insert_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *state) argument
197 cso_find_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type) argument
206 cso_hash_find_data_from_template( struct cso_hash *hash, unsigned hash_key, void *templ, int size ) argument
225 cso_find_state_template(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *templ, unsigned size) argument
239 cso_take_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type) argument
[all...]
H A Dcso_context.c372 unsigned key_size, hash_key; local
379 hash_key = cso_construct_key((void*)templ, key_size);
380 iter = cso_find_state_template(ctx->cache, hash_key, CSO_BLEND,
394 iter = cso_insert_state(ctx->cache, hash_key, CSO_BLEND, cso);
435 unsigned hash_key = cso_construct_key((void*)templ, key_size); local
437 hash_key,
455 iter = cso_insert_state(ctx->cache, hash_key,
498 unsigned hash_key = cso_construct_key((void*)templ, key_size); local
500 hash_key,
516 iter = cso_insert_state(ctx->cache, hash_key, CSO_RASTERIZE
821 unsigned key_size, hash_key; local
978 unsigned hash_key = cso_construct_key((void*)templ, key_size); local
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_state_cache.c54 hash_key(struct brw_cache_item *item) function
146 hash = hash_key(&lookup);
282 hash = hash_key(item);
/external/mesa3d/src/gallium/auxiliary/cso_cache/
H A Dcso_cache.c48 static unsigned hash_key(const void *key, unsigned key_size) function
63 static unsigned hash_key(const unsigned char *p, int n) function
80 return hash_key((item), item_size);
187 unsigned hash_key, enum cso_cache_type type,
193 return cso_hash_insert(hash, hash_key, state);
198 unsigned hash_key, enum cso_cache_type type)
202 return cso_hash_find(hash, hash_key);
207 unsigned hash_key,
211 struct cso_hash_iter iter = cso_hash_find(hash, hash_key);
226 unsigned hash_key, enu
186 cso_insert_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *state) argument
197 cso_find_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type) argument
206 cso_hash_find_data_from_template( struct cso_hash *hash, unsigned hash_key, void *templ, int size ) argument
225 cso_find_state_template(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type, void *templ, unsigned size) argument
239 cso_take_state(struct cso_cache *sc, unsigned hash_key, enum cso_cache_type type) argument
[all...]
H A Dcso_context.c372 unsigned key_size, hash_key; local
379 hash_key = cso_construct_key((void*)templ, key_size);
380 iter = cso_find_state_template(ctx->cache, hash_key, CSO_BLEND,
394 iter = cso_insert_state(ctx->cache, hash_key, CSO_BLEND, cso);
435 unsigned hash_key = cso_construct_key((void*)templ, key_size); local
437 hash_key,
455 iter = cso_insert_state(ctx->cache, hash_key,
498 unsigned hash_key = cso_construct_key((void*)templ, key_size); local
500 hash_key,
516 iter = cso_insert_state(ctx->cache, hash_key, CSO_RASTERIZE
821 unsigned key_size, hash_key; local
978 unsigned hash_key = cso_construct_key((void*)templ, key_size); local
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_state_cache.c54 hash_key(struct brw_cache_item *item) function
146 hash = hash_key(&lookup);
282 hash = hash_key(item);
/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dglsl_types.cpp516 char hash_key[128]; local
519 size = snprintf(hash_key, sizeof(hash_key), "%08x", key->length);
522 if (size >= sizeof(hash_key))
525 size += snprintf(& hash_key[size], sizeof(hash_key) - size,
529 return hash_table_string_hash(& hash_key);
/external/mesa3d/src/glsl/
H A Dglsl_types.cpp516 char hash_key[128]; local
519 size = snprintf(hash_key, sizeof(hash_key), "%08x", key->length);
522 if (size >= sizeof(hash_key))
525 size += snprintf(& hash_key[size], sizeof(hash_key) - size,
529 return hash_table_string_hash(& hash_key);
/external/chromium_org/chrome/browser/profile_resetter/
H A Dautomatic_profile_resetter.cc529 const std::string& hash_key) {
530 hash_seed_ = hash_key;
528 SetHashSeedForTesting( const std::string& hash_key) argument
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_vbuf.c200 unsigned key_size, hash_key; local
210 hash_key = cso_construct_key((void*)&velems_state, key_size);
211 iter = cso_find_state_template(mgr->cso_cache, hash_key, CSO_VELEMENTS,
221 iter = cso_insert_state(mgr->cso_cache, hash_key, CSO_VELEMENTS, cso);
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_vbuf.c200 unsigned key_size, hash_key; local
210 hash_key = cso_construct_key((void*)&velems_state, key_size);
211 iter = cso_find_state_template(mgr->cso_cache, hash_key, CSO_VELEMENTS,
221 iter = cso_insert_state(mgr->cso_cache, hash_key, CSO_VELEMENTS, cso);

Completed in 2335 milliseconds