Lines Matching refs:hval
32 lookup (htab, hval, val) in lookup() argument
34 unsigned long int hval;
38 size_t idx = 1 + hval % htab->size;
44 if (htab->table[idx].hashval == hval
49 hash = 1 + hval % (htab->size - 2);
59 if (htab->table[idx].hashval == hval
70 insert_entry_2 (NAME *htab, unsigned long int hval, size_t idx, TYPE data) in insert_entry_2() argument
91 htab->table[idx].hashval = hval; in insert_entry_2()
200 INSERT(NAME) (htab, hval, data)
202 unsigned long int hval; variable
208 hval = hval ?: 1;
210 idx = lookup (htab, hval, data);
217 insert_entry_2 (htab, hval, idx, data);
227 INSERT(NAME) (htab, hval, data)
229 unsigned long int hval; variable
235 hval = hval ?: 1;
237 idx = lookup (htab, hval, data);
240 insert_entry_2 (htab, hval, idx, data);
250 FIND(NAME) (htab, hval, val)
252 unsigned long int hval; variable
258 hval = hval ?: 1;
260 idx = lookup (htab, hval, val);