Lines Matching refs:val
218 void __atomic_exchange_c(int size, void *ptr, void *val, void *old, int model) {
221 __c11_atomic_exchange((_Atomic(type) *)ptr, *(type *)val, model); \
228 memcpy(ptr, val, size);
257 type val = *src; \
259 return val; \
265 void __atomic_store_##n(type *dest, type val, int model) { \
267 __c11_atomic_store((_Atomic(type) *)dest, val, model); \
272 *dest = val; \
280 type __atomic_exchange_##n(type *dest, type val, int model) { \
282 return __c11_atomic_exchange((_Atomic(type) *)dest, val, model); \
286 *dest = val; \
317 type __atomic_fetch_##opname##_##n(type *ptr, type val, int model) { \
319 return __c11_atomic_fetch_##opname((_Atomic(type) *)ptr, val, model); \
323 *ptr = tmp op val; \