This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]