Message142109
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? |
|
Date |
User |
Action |
Args |
2011-08-15 10:10:09 | vstinner | set | recipients:
+ vstinner, lemburg, loewis, terry.reedy, pitrou, benjamin.peterson, ezio.melotti, tchrist |
2011-08-15 10:10:09 | vstinner | set | messageid: <1313403009.34.0.750389313817.issue12751@psf.upfronthosting.co.za> |
2011-08-15 10:10:08 | vstinner | link | issue12751 messages |
2011-08-15 10:10:08 | vstinner | create | |
|