[PATCH] i386: Use __glibc_likely/__glibc_likely in dl-machine.h

Zack Weinberg zackw@panix.com
Mon Feb 5 21:48:00 GMT 2018


On Mon, Feb 5, 2018 at 3:52 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Although they are equivalent, GCC treats
>
> if (__builtin_expect (map->l_mach.plt, 0) == 0)
>
> slightly differently from
>
> if (__glibc_likely (map->l_mach.plt == 0))
>
> such that the outputs aren't identical.

Thanks for the clarification.

zw



More information about the Libc-alpha mailing list