Lines Matching refs:oldv
57 void *oldv, *v = (void *)(long)(1024 + i); in test_hashmap_generic() local
59 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
67 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
68 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
69 "unexpected k/v: %p=%p\n", oldk, oldv)) in test_hashmap_generic()
77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
80 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
81 "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
109 void *oldv, *v = (void *)(long)(256 + i); in test_hashmap_generic() local
117 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
119 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
125 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
128 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
129 "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
167 void *oldv, *v; in test_hashmap_generic() local
175 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
179 if (CHECK(oldk != k || oldv != v, "check_old", in test_hashmap_generic()
181 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
183 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
185 (long)oldk, (long)oldv)) in test_hashmap_generic()
203 void *oldv, *v; in test_hashmap_generic() local
211 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
215 if (CHECK(oldk != k || oldv != v, "elem_check", in test_hashmap_generic()
217 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
219 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()