diff options
Diffstat (limited to 'libc/sysdeps/linux/ia64')
-rw-r--r-- | libc/sysdeps/linux/ia64/bits/atomic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/ia64/bits/atomic.h b/libc/sysdeps/linux/ia64/bits/atomic.h index d719f0eac..1b6ee2b57 100644 --- a/libc/sysdeps/linux/ia64/bits/atomic.h +++ b/libc/sysdeps/linux/ia64/bits/atomic.h @@ -91,12 +91,12 @@ typedef uintmax_t uatomic_max_t; do \ { \ __oldval = __val; \ - if (__builtin_expect (__val <= 0, 0)) \ + if (unlikely (__val <= 0)) \ break; \ __val = atomic_compare_and_exchange_val_acq (__memp, __oldval - 1, \ __oldval); \ } \ - while (__builtin_expect (__val != __oldval, 0)); \ + while (unlikely (__val != __oldval)); \ __oldval; }) #define atomic_bit_test_set(mem, bit) \ @@ -112,7 +112,7 @@ typedef uintmax_t uatomic_max_t; __oldval | __mask, \ __oldval); \ } \ - while (__builtin_expect (__val != __oldval, 0)); \ + while (unlikely (__val != __oldval)); \ __oldval & __mask; }) #define atomic_full_barrier() __sync_synchronize () |