summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/bits
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-23 09:52:40 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-14 22:49:25 +0100
commitd1e51157725a4defd46c298ce1026d0f5d48da3c (patch)
tree6684eec44d1846c7eeb1ce48b383203a8058b78b /libc/sysdeps/linux/sparc/bits
parent950fcf0f68732a9aafacb5dfd33e7a7612141722 (diff)
libc: switch several users to unlikely()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/sparc/bits')
-rw-r--r--libc/sysdeps/linux/sparc/bits/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/sparc/bits/atomic.h b/libc/sysdeps/linux/sparc/bits/atomic.h
index 7c2cabaa4..4941c038b 100644
--- a/libc/sysdeps/linux/sparc/bits/atomic.h
+++ b/libc/sysdeps/linux/sparc/bits/atomic.h
@@ -289,11 +289,11 @@ volatile unsigned char __sparc32_atomic_locks[64]
__typeof (*(mem)) __acev_wval = (newval); \
do \
__acev_wret = *__acev_wmemp; \
- while (__builtin_expect \
+ while (unlikely \
(__v9_compare_and_exchange_val_32_acq (__acev_wmemp,\
__acev_wval, \
__acev_wret) \
- != __acev_wret, 0)); \
+ != __acev_wret)); \
} \
else \
__acev_wret = __v7_exchange_acq (mem, newval); \