Lines Matching defs:hash
57 /* Mesa uses 160bit hashes to identify cache entries, a hash of this size
59 * format uses a 64bit hash table to lookup file offsets for reading cache
60 * entries so we must shorten our hash.
65 uint64_t hash = 0;
68 hash |= ((uint64_t)cache_key[i]) << shift * 8;
71 return hash;
165 /* Truncate the entry's hash string to a 64bit hash for use with a
166 * 64bit hash table for looking up file offsets.
265 * db into a hash table. The index db contains the offsets needed to later
361 /* Here we lookup a cache entry in the index hash table. If an entry is found
368 uint64_t hash = truncate_hash_to_64bits(cache_key_160bit);
378 _mesa_hash_table_u64_search(foz_db->index_db, hash);
381 entry = _mesa_hash_table_u64_search(foz_db->index_db, hash);
397 /* Check for collision using full 160bit hash for increased assurance
438 uint64_t hash = truncate_hash_to_64bits(cache_key_160bit);
459 _mesa_hash_table_u64_search(foz_db->index_db, hash);
476 /* Write hash header to db */
496 /* Write hash header to index db */
522 _mesa_hash_table_u64_insert(foz_db->index_db, hash, entry);