Lines Matching defs:old_key
1420 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value) {
1428 old_hash = bucket_hash(h, old_key);
1429 idx = bucket_scan(h, old_hash, old_key);
1447 int set_remove_and_put(Set *s, const void *old_key, const void *new_key) {
1455 old_hash = bucket_hash(s, old_key);
1456 idx = bucket_scan(s, old_hash, old_key);
1473 int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_key, void *value) {
1481 old_hash = bucket_hash(h, old_key);
1482 idx_old = bucket_scan(h, old_hash, old_key);
1486 old_key = bucket_at(HASHMAP_BASE(h), idx_old)->key;
1494 if (old_key != bucket_at(HASHMAP_BASE(h), idx_old)->key)
1496 assert(old_key == bucket_at(HASHMAP_BASE(h), idx_old)->key);