mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Use __glibc_unlikely instead of __builtin_expect (..., 0)
This commit is contained in:
parent
3b813b2965
commit
3a30923983
@ -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]
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user