diff options
Diffstat (limited to 'libc/sysdeps/linux/i386/bits/atomicity.h')
-rw-r--r-- | libc/sysdeps/linux/i386/bits/atomicity.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/i386/bits/atomicity.h b/libc/sysdeps/linux/i386/bits/atomicity.h index df2fb8184..d83ae791e 100644 --- a/libc/sysdeps/linux/i386/bits/atomicity.h +++ b/libc/sysdeps/linux/i386/bits/atomicity.h @@ -24,7 +24,7 @@ static inline uint32_t -__attribute__ ((unused)) +__attribute_used__ exchange_and_add (volatile uint32_t *mem, uint32_t val) { register uint32_t result; @@ -34,7 +34,7 @@ exchange_and_add (volatile uint32_t *mem, uint32_t val) } static inline void -__attribute__ ((unused)) +__attribute_used__ atomic_add (volatile uint32_t *mem, int val) { __asm__ __volatile__ ("lock; addl %1,%0" @@ -42,7 +42,7 @@ atomic_add (volatile uint32_t *mem, int val) } static inline char -__attribute__ ((unused)) +__attribute_used__ compare_and_swap (volatile long int *p, long int oldval, long int newval) { char ret; |