mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Use glibc_likely instead __builtin_expect.
This commit is contained in:
@ -175,7 +175,7 @@ sigcancel_handler (int sig, siginfo_t *si, void *ctx)
|
||||
/* Determine the process ID. It might be negative if the thread is
|
||||
in the middle of a fork() call. */
|
||||
pid_t pid = THREAD_GETMEM (THREAD_SELF, pid);
|
||||
if (__builtin_expect (pid < 0, 0))
|
||||
if (__glibc_unlikely (pid < 0))
|
||||
pid = -pid;
|
||||
|
||||
/* Safety check. It would be possible to call this function for
|
||||
@ -232,7 +232,7 @@ sighandler_setxid (int sig, siginfo_t *si, void *ctx)
|
||||
/* Determine the process ID. It might be negative if the thread is
|
||||
in the middle of a fork() call. */
|
||||
pid_t pid = THREAD_GETMEM (THREAD_SELF, pid);
|
||||
if (__builtin_expect (pid < 0, 0))
|
||||
if (__glibc_unlikely (pid < 0))
|
||||
pid = -pid;
|
||||
|
||||
/* Safety check. It would be possible to call this function for
|
||||
|
Reference in New Issue
Block a user