Lines Matching defs:hash
113 unsigned int hash;
122 /* fnv32 hash */
123 unsigned int i, hash = 2166136261U;
126 hash = (hash ^ str[i]) * 0x01000193;
127 return hash;
133 static void add_to_hashtable(const char *name, int len, unsigned int hash,
141 aux->hash = hash;
142 aux->next = hashtab[hash % HASHSZ];
143 hashtab[hash % HASHSZ] = aux;
147 * Lookup a string in the hash table. If found, just return true.
153 unsigned int hash = strhash(name, len);
155 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) {
156 if (aux->hash == hash && aux->len == len &&
161 add_to_hashtable(name, len, hash, hashtab);