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 vstinner
Recipients benjamin.peterson, ezio.melotti, lemburg, loewis, pitrou, tchrist, terry.reedy, vstinner
Date 2011-08-15.10:10:08
SpamBayes Score 0.03691157
Marked as misclassified No
Message-id <1313403009.34.0.750389313817.issue12751@psf.upfronthosting.co.za>
In-reply-to
Content
We may use the following unlikely macro for IS_SURROGATE, IS_HIGH_SURROGATE and IS_LOW_SURROGATE:

#define likely(x)	__builtin_expect(!!(x), 1)
#define unlikely(x)	__builtin_expect(!!(x), 0)

I suppose that we should use microbenchmarks to validate these macros?

Should I open a new issue for this idea?
History
Date User Action Args
2011-08-15 10:10:09vstinnersetrecipients: + vstinner, lemburg, loewis, terry.reedy, pitrou, benjamin.peterson, ezio.melotti, tchrist
2011-08-15 10:10:09vstinnersetmessageid: <1313403009.34.0.750389313817.issue12751@psf.upfronthosting.co.za>
2011-08-15 10:10:08vstinnerlinkissue12751 messages
2011-08-15 10:10:08vstinnercreate