[issue12751] Use macros for surrogates in unicodeobject.c
STINNER Victor
report at bugs.python.org
Mon Aug 15 12:10:09 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
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?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12751>
_______________________________________
More information about the Python-bugs-list
mailing list