Lines Matching refs:hash
111 unsigned int hash;
120 /* fnv32 hash */
121 unsigned int i, hash = 2166136261U;
124 hash = (hash ^ str[i]) * 0x01000193;
125 return hash;
131 static void add_to_hashtable(const char *name, int len, unsigned int hash,
142 aux->hash = hash;
143 aux->next = hashtab[hash % HASHSZ];
144 hashtab[hash % HASHSZ] = aux;
148 * Lookup a string in the hash table. If found, just return true.
154 unsigned int hash = strhash(name, len);
156 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) {
157 if (aux->hash == hash && aux->len == len &&
162 add_to_hashtable(name, len, hash, hashtab);