Lines Matching defs:other
76 * http://www.pvk.ca/Blog/2013/11/26/the-other-robin-hood-hashing/
722 /* ... or remove entries other than the current one */
1609 int internal_hashmap_merge(Hashmap *h, Hashmap *other) {
1615 HASHMAP_FOREACH_IDX(idx, HASHMAP_BASE(other), i) {
1616 struct plain_hashmap_entry *pe = plain_bucket_at(other, idx);
1627 int set_merge(Set *s, Set *other) {
1633 HASHMAP_FOREACH_IDX(idx, HASHMAP_BASE(other), i) {
1634 struct set_entry *se = set_bucket_at(other, idx);
1658 * The same as hashmap_merge(), but every new item from other is moved to h.
1659 * Keys already in h are skipped and stay in other.
1663 int internal_hashmap_move(HashmapBase *h, HashmapBase *other) {
1672 if (!other)
1675 assert(other->type == h->type);
1678 * This reserves buckets for the worst case, where none of other's
1683 r = resize_buckets(h, n_entries(other));
1687 HASHMAP_FOREACH_IDX(idx, other, i) {
1690 e = bucket_at(other, idx);
1702 remove_entry(other, idx);
1708 int internal_hashmap_move_one(HashmapBase *h, HashmapBase *other, const void *key) {
1720 if (!other)
1723 assert(other->type == h->type);
1725 other_hash = bucket_hash(other, key);
1726 idx = bucket_scan(other, other_hash, key);
1730 e = bucket_at(other, idx);
1741 remove_entry(other, idx);