Lines Matching refs:old_key
1374 int hashmap_remove_and_put(Hashmap *h, const void *old_key, const void *new_key, void *value) {
1382 old_hash = bucket_hash(h, old_key);
1383 idx = bucket_scan(h, old_hash, old_key);
1401 int set_remove_and_put(Set *s, const void *old_key, const void *new_key) {
1409 old_hash = bucket_hash(s, old_key);
1410 idx = bucket_scan(s, old_hash, old_key);
1427 int hashmap_remove_and_replace(Hashmap *h, const void *old_key, const void *new_key, void *value) {
1435 old_hash = bucket_hash(h, old_key);
1436 idx_old = bucket_scan(h, old_hash, old_key);
1440 old_key = bucket_at(HASHMAP_BASE(h), idx_old)->key;
1448 if (old_key != bucket_at(HASHMAP_BASE(h), idx_old)->key)
1450 assert(old_key == bucket_at(HASHMAP_BASE(h), idx_old)->key);