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, loewis, pitrou
Date 2009-01-14.11:45:11
SpamBayes Score 0.045267947
Marked as misclassified No
Message-id <1231933513.01.0.0718897529628.issue4941@psf.upfronthosting.co.za>
In-reply-to
Content
Also, GCC 2.95 does not support the construct, GCC 2.96 is required.
So, I'd suggest defining likely/unlikely unconditionally and using this,
which leads to less code overall:

#  if (__GNUC__ < 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ <= 95))
#  define __builtin_expect(exp, prediction)  (exp)
#  endif

This is the simplest way to code this, assuming that ICC defines
__GNUC__, and my reference guide tells "yes, it defines __GNUC__ and
__INTEL_COMPILER".
History
Date User Action Args
2009-01-14 11:45:13blaisorbladesetrecipients: + blaisorblade, loewis, pitrou, ajaksu2
2009-01-14 11:45:13blaisorbladesetmessageid: <1231933513.01.0.0718897529628.issue4941@psf.upfronthosting.co.za>
2009-01-14 11:45:12blaisorbladelinkissue4941 messages
2009-01-14 11:45:11blaisorbladecreate