Lines Matching refs:hash_val
225 #define PTR_NOT_EQUAL(table, ptr, hash_val, key) \ argument
226 ((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
234 #define FIND_ENTRY(table, ptr, hash_val, bin_pos) do {\ argument
235 bin_pos = hash_val%(table)->num_bins;\
237 if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
239 while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
252 unsigned int hash_val, bin_pos; local
255 hash_val = do_hash(key, table);
256 FIND_ENTRY(table, ptr, hash_val, bin_pos);
267 #define ADD_DIRECT(table, key, value, hash_val, bin_pos, ret) \ argument
272 bin_pos = hash_val % table->num_bins;\
276 entry->hash = hash_val;\
290 unsigned int hash_val, bin_pos; local
293 hash_val = do_hash(key, table);
294 FIND_ENTRY(table, ptr, hash_val, bin_pos);
297 ADD_DIRECT(table, key, value, hash_val, bin_pos, ONIGERR_MEMORY);
312 unsigned int hash_val, bin_pos; local
314 hash_val = do_hash(key, table);
315 bin_pos = hash_val % table->num_bins;
316 ADD_DIRECT(table, key, value, hash_val, bin_pos,);
325 unsigned int hash_val; local
337 hash_val = ptr->hash % new_num_bins;
338 ptr->next = new_bins[hash_val];
339 new_bins[hash_val] = ptr;
395 unsigned int hash_val; local
399 hash_val = do_hash_bin(*key, table);
400 ptr = table->bins[hash_val];
408 table->bins[hash_val] = ptr->next;
438 unsigned int hash_val; local
441 hash_val = do_hash_bin(*key, table);
442 ptr = table->bins[hash_val];