summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/__rt_sigtimedwait.c4
-rw-r--r--libc/sysdeps/linux/common/sigprocmask.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/common/__rt_sigtimedwait.c b/libc/sysdeps/linux/common/__rt_sigtimedwait.c
index b45f5df1b..422a95201 100644
--- a/libc/sysdeps/linux/common/__rt_sigtimedwait.c
+++ b/libc/sysdeps/linux/common/__rt_sigtimedwait.c
@@ -28,9 +28,9 @@ int __NC(sigtimedwait)(const sigset_t *set, siginfo_t *info,
# ifdef SIGCANCEL
sigset_t tmpset;
- if (set != NULL && (__builtin_expect (__sigismember (set, SIGCANCEL), 0)
+ if (set != NULL && (unlikely (__sigismember (set, SIGCANCEL))
# ifdef SIGSETXID
- || __builtin_expect (__sigismember (set, SIGSETXID), 0)
+ || unlikely (__sigismember (set, SIGSETXID))
# endif
))
{
diff --git a/libc/sysdeps/linux/common/sigprocmask.c b/libc/sysdeps/linux/common/sigprocmask.c
index 6eaf5fb3a..efe440fde 100644
--- a/libc/sysdeps/linux/common/sigprocmask.c
+++ b/libc/sysdeps/linux/common/sigprocmask.c
@@ -35,9 +35,9 @@ int sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
* The only thing we have to make sure here is that SIGCANCEL and
* SIGSETXID are not blocked.
*/
- if (set != NULL && (__builtin_expect (__sigismember (set, SIGCANCEL), 0)
+ if (set != NULL && (unlikely (__sigismember (set, SIGCANCEL))
# ifdef SIGSETXID
- || __builtin_expect (__sigismember (set, SIGSETXID), 0)
+ || unlikely (__sigismember (set, SIGSETXID))
# endif
))
{
@@ -70,9 +70,9 @@ int sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
* The only thing we have to make sure here is that SIGCANCEL and
* SIGSETXID are not blocked.
*/
- if (set != NULL && (__builtin_expect (__sigismember (set, SIGCANCEL), 0)
+ if (set != NULL && (unlikely (__sigismember (set, SIGCANCEL))
# ifdef SIGSETXID
- || __builtin_expect (__sigismember (set, SIGSETXID), 0)
+ || unlikely (__sigismember (set, SIGSETXID))
# endif
))
{