mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
(clock_nanosleep): Add one more __builtin_expect.
This commit is contained in:
parent
f9e7bbcead
commit
d8317630cd
@ -49,7 +49,7 @@ clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req,
|
|||||||
assert (sizeof (sec) >= sizeof (now.tv_sec));
|
assert (sizeof (sec) >= sizeof (now.tv_sec));
|
||||||
|
|
||||||
/* Get the current time for this clock. */
|
/* Get the current time for this clock. */
|
||||||
if (clock_gettime (clock_id, &now) != 0)
|
if (__builtin_expect (clock_gettime (clock_id, &now), 0) != 0)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
/* Compute the difference. */
|
/* Compute the difference. */
|
||||||
|
Loading…
Reference in New Issue
Block a user