Lines Matching refs:mem
195 __sync_lock_test_and_set_##N##_c(uintN_t *mem, uintN_t val) \
201 mem32 = round_to_word(mem); \
203 put_##N(&val32, mem, val); \
205 put_##N(&negmask, mem, 0); \
219 return (get_##N(&old, mem)); \
227 __sync_val_compare_and_swap_##N##_c(uintN_t *mem, uintN_t expected, \
234 mem32 = round_to_word(mem); \
236 put_##N(&expected32, mem, expected); \
238 put_##N(&desired32, mem, desired); \
240 put_##N(&posmask, mem, ~0); \
260 return (get_##N(&old, mem)); \
268 __sync_##name##_##N##_c(uintN_t *mem, uintN_t val) \
274 mem32 = round_to_word(mem); \
276 put_##N(&val32, mem, val); \
278 put_##N(&posmask, mem, ~0); \
296 return (get_##N(&old, mem)); \
306 __sync_##name##_##N##_c(uintN_t *mem, uintN_t val) \
312 mem32 = round_to_word(mem); \
314 put_##N(&val32, mem, val); \
327 return (get_##N(&old, mem)); \
342 __sync_lock_test_and_set_4_c(uint32_t *mem, uint32_t val) in __sync_lock_test_and_set_4_c() argument
353 : "=&r" (old), "=m" (*mem), "=&r" (temp) in __sync_lock_test_and_set_4_c()
354 : "r" (val), "m" (*mem)); in __sync_lock_test_and_set_4_c()
359 __sync_val_compare_and_swap_4_c(uint32_t *mem, uint32_t expected, in __sync_val_compare_and_swap_4_c() argument
374 : "=&r" (old), "=m" (*mem), "=&r" (temp) in __sync_val_compare_and_swap_4_c()
375 : "r" (expected), "r" (desired), "m" (*mem)); in __sync_val_compare_and_swap_4_c()
381 __sync_##name##_4##_c(uint32_t *mem, uint32_t val) \
393 : "=&r" (old), "=m" (*mem), "=&r" (temp1), \
395 : "r" (val), "m" (*mem)); \