[Bug 39631] add optimisation helpers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 24 00:31:07 PDT 2014


--- Comment #8 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to comment #7)
> I just dug throught he commit log for glib =) I'd be inclined to simply
> re-use G_LIKELY and G_UNLIKELY with a SAL prefix myself.

That _G_BOOLEAN_EXPR trick would work.  An alternative would be to restrict
this to C++ and instead stick an explicit conversion to bool into the
__builtin_expect call.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140924/e8833b6b/attachment.html>

More information about the LibreOffice mailing list