This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author blaisorblade
Recipients ajaksu2, blaisorblade, collinwinter, jyasskin, loewis, pitrou
Date 2009-01-26.11:53:13
SpamBayes Score 0.0022273173
Marked as misclassified No
Message-id <1232970794.47.0.309004539944.issue4941@psf.upfronthosting.co.za>
In-reply-to
Content
>Probably #if the definitions of Py_LIKELY and Py_UNLIKELY instead of
__builtin_expect so new compilers can easily add their own definitions.

This was done in the first version, but with the currently supported
compilers it's simpler to do like that, because both GCC and ICC support
the same __builtin_expect syntax, so you get less code this way.

Anyway, the code was "inspired" from the Linux kernel which only
supports those two compilers, so anybody more knowledgeable is welcome
to suggest how to express this with other compilers.
History
Date User Action Args
2009-01-26 11:53:14blaisorbladesetrecipients: + blaisorblade, loewis, collinwinter, pitrou, ajaksu2, jyasskin
2009-01-26 11:53:14blaisorbladesetmessageid: <1232970794.47.0.309004539944.issue4941@psf.upfronthosting.co.za>
2009-01-26 11:53:13blaisorbladelinkissue4941 messages
2009-01-26 11:53:13blaisorbladecreate