Lines Matching defs:other
80 * http://www.pvk.ca/Blog/2013/11/26/the-other-robin-hood-hashing/
668 /* ... or remove entries other than the current one */
1563 int internal_hashmap_merge(Hashmap *h, Hashmap *other) {
1569 HASHMAP_FOREACH_IDX(idx, HASHMAP_BASE(other), i) {
1570 struct plain_hashmap_entry *pe = plain_bucket_at(other, idx);
1581 int set_merge(Set *s, Set *other) {
1587 HASHMAP_FOREACH_IDX(idx, HASHMAP_BASE(other), i) {
1588 struct set_entry *se = set_bucket_at(other, idx);
1612 * The same as hashmap_merge(), but every new item from other is moved to h.
1613 * Keys already in h are skipped and stay in other.
1617 int internal_hashmap_move(HashmapBase *h, HashmapBase *other) {
1626 if (!other)
1629 assert(other->type == h->type);
1632 * This reserves buckets for the worst case, where none of other's
1637 r = resize_buckets(h, n_entries(other));
1641 HASHMAP_FOREACH_IDX(idx, other, i) {
1644 e = bucket_at(other, idx);
1656 remove_entry(other, idx);
1662 int internal_hashmap_move_one(HashmapBase *h, HashmapBase *other, const void *key) {
1674 if (!other)
1677 assert(other->type == h->type);
1679 other_hash = bucket_hash(other, key);
1680 idx = bucket_scan(other, other_hash, key);
1684 e = bucket_at(other, idx);
1695 remove_entry(other, idx);