Lines Matching refs:oldv

56 		void *oldv, *v = (void *)(long)(1024 + i);  in test_hashmap_generic()  local
58 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
66 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
67 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
68 "unexpected k/v: %p=%p\n", oldk, oldv)) in test_hashmap_generic()
76 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
79 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
80 "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
108 void *oldv, *v = (void *)(long)(256 + i); in test_hashmap_generic() local
116 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic()
118 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic()
124 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
127 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
128 "found value is wrong: %ld\n", (long)oldv)) in test_hashmap_generic()
166 void *oldv, *v; in test_hashmap_generic() local
174 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
178 if (CHECK(oldk != k || oldv != v, "check_old", in test_hashmap_generic()
180 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
182 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
184 (long)oldk, (long)oldv)) in test_hashmap_generic()
202 void *oldv, *v; in test_hashmap_generic() local
210 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
214 if (CHECK(oldk != k || oldv != v, "elem_check", in test_hashmap_generic()
216 (long)k, (long)v, (long)oldk, (long)oldv)) in test_hashmap_generic()
218 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()