diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-02-23 09:52:40 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-03-14 22:49:25 +0100 |
commit | d1e51157725a4defd46c298ce1026d0f5d48da3c (patch) | |
tree | 6684eec44d1846c7eeb1ce48b383203a8058b78b /libc/sysdeps/linux/ia64/bits | |
parent | 950fcf0f68732a9aafacb5dfd33e7a7612141722 (diff) |
libc: switch several users to unlikely()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/ia64/bits')
-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 () |