Lines Matching refs:hash
130 unsigned int hash; member
140 unsigned int i, hash = 2166136261U; in strhash() local
143 hash = (hash ^ str[i]) * 0x01000193; in strhash()
144 return hash; in strhash()
150 static int is_defined_config(const char *name, int len, unsigned int hash) in is_defined_config() argument
154 for (aux = hashtab[hash % HASHSZ]; aux; aux = aux->next) { in is_defined_config()
155 if (aux->hash == hash && aux->len == len && in is_defined_config()
165 static void define_config(const char *name, int len, unsigned int hash) in define_config() argument
175 aux->hash = hash; in define_config()
176 aux->next = hashtab[hash % HASHSZ]; in define_config()
177 hashtab[hash % HASHSZ] = aux; in define_config()
185 unsigned int hash = strhash(m, slen); in use_config() local
187 if (is_defined_config(m, slen, hash)) in use_config()
190 define_config(m, slen, hash); in use_config()