Lines Matching refs:target

115 	ck_pr_md_load_##S(const M *target)			\
120 : "r" (target) \
142 ck_pr_md_store_##S(M *target, T v) \
146 : "r" (target), \
169 ck_pr_cas_##N##_value(M *target, T compare, T set, M *value) \
174 *(T *)value = *(T *)target; \
175 if (*(T *)target == compare) { \
176 *(T *)target = set; \
185 ck_pr_cas_##N(M *target, T compare, T set) \
190 if (*(T *)target == compare) { \
191 *(T *)target = set; \
216 ck_pr_fas_##N(M *target, T v) \
221 previous = *(T *)target; \
222 *(T *)target = v; \
242 ck_pr_##O##_##N(M *target) \
252 CK_PR_UNARY(inc, ptr, void, void *, (*(int *)target)++, "")
253 CK_PR_UNARY(dec, ptr, void, void *, (*(int *)target)--, "")
254 CK_PR_UNARY(not, ptr, void, void *, *(int *)target = !(*(int*)target), "")
255 CK_PR_UNARY(neg, ptr, void, void *, *(int *)target = -(*(int *)target), "")
258 CK_PR_UNARY(inc, S, T, T, *target++, W) \
259 CK_PR_UNARY(dec, S, T, T, *target--, W) \
260 CK_PR_UNARY(not, S, T, T, *target = !*target, W) \
261 CK_PR_UNARY(neg, S, T, T, *target = -*target, W) \
276 ck_pr_##O##_##N(M *target, T delta) \
286 CK_PR_BINARY(and, ptr, void, uintptr_t, *((uintptr_t *)target) &= delta, "")
287 CK_PR_BINARY(add, ptr, void, uintptr_t, *((uintptr_t *)target) += delta, "")
288 CK_PR_BINARY(or, ptr, void, uintptr_t, *((uintptr_t *)target) |= delta, "")
289 CK_PR_BINARY(sub, ptr, void, uintptr_t, *((uintptr_t *)target) -= delta, "")
290 CK_PR_BINARY(xor, ptr, void, uintptr_t, *((uintptr_t *)target) ^= delta, "")
293 CK_PR_BINARY(and, S, T, T, *target &= delta, W) \
294 CK_PR_BINARY(add, S, T, T, *target += delta, W) \
295 CK_PR_BINARY(or, S, T, T, *target |= delta, W) \
296 CK_PR_BINARY(sub, S, T, T, *target -= delta, W) \
297 CK_PR_BINARY(xor, S, T, T, *target ^= delta, W)
311 ck_pr_faa_ptr(void *target, uintptr_t delta)
316 previous = *(uintptr_t *)target;
317 *(uintptr_t *)target += delta;
325 ck_pr_faa_##S(T *target, T delta) \
330 previous = *target; \
331 *target += delta; \