summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/frv/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/frv/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/frv/bits')
-rw-r--r--libc/sysdeps/linux/frv/bits/syscalls.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/frv/bits/syscalls.h b/libc/sysdeps/linux/frv/bits/syscalls.h
index eea3050ba..b1f532040 100644
--- a/libc/sysdeps/linux/frv/bits/syscalls.h
+++ b/libc/sysdeps/linux/frv/bits/syscalls.h
@@ -15,8 +15,7 @@
# define __syscall_return(type, res) \
do { \
unsigned long __sr2 = (res); \
- if (__builtin_expect ((unsigned long)(__sr2) \
- >= (unsigned long)(-4095), 0)) { \
+ if (unlikely ((unsigned long)(__sr2) >= (unsigned long)(-4095))) { \
extern int __syscall_error (int); \
return (type) __syscall_error (__sr2); \
} \
@@ -26,8 +25,7 @@ do { \
# define __syscall_return(type, res) \
do { \
unsigned long __sr2 = (res); \
- if (__builtin_expect ((unsigned long)(__sr2) \
- >= (unsigned long)(-4095), 0)) { \
+ if (unlikely ((unsigned long)(__sr2) >= (unsigned long)(-4095))) { \
__set_errno (-__sr2); \
__sr2 = -1; \
} \