From d1e51157725a4defd46c298ce1026d0f5d48da3c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 23 Feb 2013 09:52:40 +0100 Subject: libc: switch several users to unlikely() Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/frv/bits/syscalls.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/frv/bits') 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; \ } \ -- cgit v1.2.3