Lines Matching refs:hash
321 unsigned hash = 0; in hash_table_hash() local
324 hash += *name++; in hash_table_hash()
325 hash += (hash << 10); in hash_table_hash()
326 hash ^= (hash >> 6); in hash_table_hash()
328 hash += (hash << 3); in hash_table_hash()
329 hash ^= (hash >> 11); in hash_table_hash()
330 hash += (hash << 15); in hash_table_hash()
331 return hash % num_buckets; in hash_table_hash()
380 unsigned hash = hash_table_hash(elt->name, ht->num_buckets); in hash_table_add() local
392 if (!ht->buckets[hash].first) in hash_table_add()
394 ht->buckets[hash].first = elt; in hash_table_add()
398 ht->buckets[hash].last->next = elt; in hash_table_add()
400 ht->buckets[hash].last = elt; in hash_table_add()