Use __glibc_unlikely instead of __builtin_expect (..., 0)

This commit is contained in:
Siddhesh Poyarekar 2013-08-28 09:44:19 +05:30
parent 3b813b2965
commit 3a30923983
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-08-28 Siddhesh Poyarekar <siddhesh@redhat.com>
* nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
* sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2013-08-27 Mike Frysinger <vapier@gentoo.org>
[BZ #15897]

View File

@ -102,7 +102,7 @@ addhstaiX (struct database_dyn *db, int fd, request_header *req,
"dns [!UNAVAIL=return] files", &nip);
/* Initialize configurations. */
if (__builtin_expect (!_res_hconf.initialized, 0))
if (__glibc_unlikely (!_res_hconf.initialized))
_res_hconf_init ();
if (__res_maybe_init (&_res, 0) == -1)
no_more = 1;

View File

@ -802,7 +802,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
&nip);
/* Initialize configurations. */
if (__builtin_expect (!_res_hconf.initialized, 0))
if (__glibc_unlikely (!_res_hconf.initialized))
_res_hconf_init ();
if (__res_maybe_init (&_res, 0) == -1)
no_more = 1;