Lines Matching refs:e

118         struct ordered_hashmap_entry e[_IDX_SWAP_END - _IDX_SWAP_BEGIN];  member
392 return &swap->e[idx - _IDX_SWAP_BEGIN]; in bucket_at_swap()
506 static void* entry_value(HashmapBase *h, struct hashmap_base_entry *e) { in entry_value() argument
511 return ((struct plain_hashmap_entry*)e)->value; in entry_value()
514 return (void*) e->key; in entry_value()
577 struct ordered_hashmap_entry *e; in hashmap_iterate_in_insertion_order() local
591 e = ordered_bucket_at(h, idx); in hashmap_iterate_in_insertion_order()
594 e = ordered_bucket_at(h, idx); in hashmap_iterate_in_insertion_order()
601 if (e->p.b.key != i->next_key) { in hashmap_iterate_in_insertion_order()
603 e = ordered_bucket_at(h, idx); in hashmap_iterate_in_insertion_order()
605 assert(e->p.b.key == i->next_key); in hashmap_iterate_in_insertion_order()
612 if (e->iterate_next != IDX_NIL) { in hashmap_iterate_in_insertion_order()
614 i->idx = e->iterate_next; in hashmap_iterate_in_insertion_order()
647 struct hashmap_base_entry *e; in hashmap_iterate_in_internal_order() local
651 e = bucket_at(h, i->idx); in hashmap_iterate_in_internal_order()
658 if (e->key != i->next_key) in hashmap_iterate_in_internal_order()
659 e = bucket_at(h, --i->idx); in hashmap_iterate_in_internal_order()
661 assert(e->key == i->next_key); in hashmap_iterate_in_internal_order()
709 struct hashmap_base_entry *e; in _hashmap_iterate() local
723 e = bucket_at(h, idx); in _hashmap_iterate()
724 data = entry_value(h, e); in _hashmap_iterate()
728 *key = e->key; in _hashmap_iterate()
1204 struct hashmap_base_entry *e; in base_bucket_scan() local
1219 e = bucket_at(h, idx); in base_bucket_scan()
1220 if (h->hash_ops->compare(e->key, key) == 0) in base_bucket_scan()
1231 struct plain_hashmap_entry *e; in hashmap_put() local
1239 e = plain_bucket_at(h, idx); in hashmap_put()
1240 if (e->value == value) in hashmap_put()
1245 e = &bucket_at_swap(&swap, IDX_PUT)->p; in hashmap_put()
1246 e->b.key = key; in hashmap_put()
1247 e->value = value; in hashmap_put()
1253 struct hashmap_base_entry *e; in set_put() local
1263 e = &bucket_at_swap(&swap, IDX_PUT)->p.b; in set_put()
1264 e->key = key; in set_put()
1294 struct plain_hashmap_entry *e; in hashmap_replace() local
1302 e = plain_bucket_at(h, idx); in hashmap_replace()
1307 if (e->b.key != key) { in hashmap_replace()
1313 e->b.key = key; in hashmap_replace()
1314 e->value = value; in hashmap_replace()
1320 e = &bucket_at_swap(&swap, IDX_PUT)->p; in hashmap_replace()
1321 e->b.key = key; in hashmap_replace()
1322 e->value = value; in hashmap_replace()
1327 struct plain_hashmap_entry *e; in hashmap_update() local
1337 e = plain_bucket_at(h, idx); in hashmap_update()
1338 e->value = value; in hashmap_update()
1345 struct hashmap_base_entry *e; in _hashmap_get() local
1356 e = bucket_at(h, idx); in _hashmap_get()
1357 return entry_value(h, e); in _hashmap_get()
1361 struct plain_hashmap_entry *e; in hashmap_get2() local
1372 e = plain_bucket_at(h, idx); in hashmap_get2()
1374 *key2 = (void*) e->b.key; in hashmap_get2()
1376 return e->value; in hashmap_get2()
1390 struct hashmap_base_entry *e; in _hashmap_remove() local
1402 e = bucket_at(h, idx); in _hashmap_remove()
1403 data = entry_value(h, e); in _hashmap_remove()
1410 struct plain_hashmap_entry *e; in hashmap_remove2() local
1428 e = plain_bucket_at(h, idx); in hashmap_remove2()
1429 data = e->value; in hashmap_remove2()
1431 *rkey = (void*) e->b.key; in hashmap_remove2()
1440 struct plain_hashmap_entry *e; in hashmap_remove_and_put() local
1457 e = &bucket_at_swap(&swap, IDX_PUT)->p; in hashmap_remove_and_put()
1458 e->b.key = new_key; in hashmap_remove_and_put()
1459 e->value = value; in hashmap_remove_and_put()
1467 struct hashmap_base_entry *e; in set_remove_and_put() local
1484 e = &bucket_at_swap(&swap, IDX_PUT)->p.b; in set_remove_and_put()
1485 e->key = new_key; in set_remove_and_put()
1493 struct plain_hashmap_entry *e; in hashmap_remove_and_replace() local
1519 e = &bucket_at_swap(&swap, IDX_PUT)->p; in hashmap_remove_and_replace()
1520 e->b.key = new_key; in hashmap_remove_and_replace()
1521 e->value = value; in hashmap_remove_and_replace()
1528 struct hashmap_base_entry *e; in _hashmap_remove_value() local
1539 e = bucket_at(h, idx); in _hashmap_remove_value()
1540 if (entry_value(h, e) != value) in _hashmap_remove_value()
1558 struct hashmap_base_entry *e; in _hashmap_first_key_and_value() local
1569 e = bucket_at(h, idx); in _hashmap_first_key_and_value()
1570 key = (void*) e->key; in _hashmap_first_key_and_value()
1571 data = entry_value(h, e); in _hashmap_first_key_and_value()
1652 struct hashmap_base_entry *e, *n; in _hashmap_move() local
1677 e = bucket_at(other, idx); in _hashmap_move()
1678 h_hash = bucket_hash(h, e->key); in _hashmap_move()
1679 if (bucket_scan(h, h_hash, e->key) != IDX_NIL) in _hashmap_move()
1683 n->key = e->key; in _hashmap_move()
1686 ((struct plain_hashmap_entry*) e)->value; in _hashmap_move()
1698 struct hashmap_base_entry *e, *n; in _hashmap_move_one() local
1717 e = bucket_at(other, idx); in _hashmap_move_one()
1720 n->key = e->key; in _hashmap_move_one()
1723 ((struct plain_hashmap_entry*) e)->value; in _hashmap_move_one()
1781 struct ordered_hashmap_entry *e; in ordered_hashmap_next() local
1792 e = ordered_bucket_at(h, idx); in ordered_hashmap_next()
1793 if (e->iterate_next == IDX_NIL) in ordered_hashmap_next()
1795 return ordered_bucket_at(h, e->iterate_next)->p.value; in ordered_hashmap_next()
1962 struct hashmap_base_entry *e; in iterated_cache_get() local
1964 e = bucket_at(cache->hashmap, idx); in iterated_cache_get()
1967 cache->keys.ptr[i] = e->key; in iterated_cache_get()
1969 cache->values.ptr[i] = entry_value(cache->hashmap, e); in iterated_cache_get()