This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH COMMITTED] resolv: Replace __builtin_expect with __glibc_unlikely/__glibc_likely
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: fweimer at redhat dot com (Florian Weimer)
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 19 Apr 2017 16:13:39 +0200
- Subject: Re: [PATCH COMMITTED] resolv: Replace __builtin_expect with __glibc_unlikely/__glibc_likely
- Authentication-results: sourceware.org; auth=none
- References: <20170419123107.5EC36416FD367@oldenburg.str.redhat.com>
On Apr 19 2017, fweimer@redhat.com (Florian Weimer) wrote:
> @@ -633,7 +633,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
> packtmp, sizeof packtmp);
> if (n != -1 && __ns_name_ntop (packtmp, bp, linebuflen) == -1)
> {
> - if (__builtin_expect (errno, 0) == EMSGSIZE)
> + if (__glibc_unlikely (errno) == EMSGSIZE)
(__glibc_unlikely (errno == EMSGSIZE))
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."