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][BZ #14188] Allow pthread_cleanup_push to build withcompilers other than gcc


This is the only use of __builtin_expect in a public header now.
But it seems reasonably likely that we'll have others eventually.
So my inclination would be to put the macro in sys/cdefs.h and give
it a different name.  (Or perhaps also slightly different semantics,
e.g. __glibc_unlikely(BOOL).)


Thanks,
Roland


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