git.samba.org
/
jlayton
/
glibc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use glibc_likely instead __builtin_expect.
[jlayton/glibc.git]
/
libio
/
iofgets.c
diff --git
a/libio/iofgets.c
b/libio/iofgets.c
index bf7f84ad3e070fd3d4c833d16c3f0fcba6adda35..1b708cad0d6fa9dd8a18895ea868f84454aeb973 100644
(file)
--- a/
libio/iofgets.c
+++ b/
libio/iofgets.c
@@
-39,7
+39,7
@@
_IO_fgets (buf, n, fp)
CHECK_FILE (fp, NULL);
if (n <= 0)
return NULL;
- if (__
builtin_expect (n == 1, 0
))
+ if (__
glibc_unlikely (n == 1
))
{
/* Another irregular case: since we have to store a NUL byte and
there is only room for exactly one byte, we don't have to