[zeromq-dev] __builtin_expect for clang
Uli Köhler
ulikoehler.dev at googlemail.com
Sat Apr 20 18:38:17 CEST 2013
Hi!
I'm currently testing Clang(++) for some project and I noticed that
likely.hpp (which defines branch prediction macros) currently only supports
the GNU C compiler, while for other compilers an empty macro is used (e.g.
#define likely(x) (x))
Clang however supports the same syntax for __builtin_expect as GCC, see
http://llvm.org/docs/BranchWeightMetadata.html
How do you think about adding clang support to likely.hpp? If you think it
makes sense, I could submit a pull request on Github.
Best regards,
Uli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130420/cc5829e0/attachment.htm>
More information about the zeromq-dev
mailing list