diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-04-08 20:43:44 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-04-08 20:43:44 (GMT) |
commit | cd777eaf53e438e2c3b7aab384f18d56b262bc0b (patch) | |
tree | 5a95e3a6567bbf8dd559a73124c866d91360b35b /PC/pyconfig.h | |
parent | 9fc5981ea2ee722a8012e67aaa5cf6d6cae99bb1 (diff) | |
download | cpython-cd777eaf53e438e2c3b7aab384f18d56b262bc0b.zip cpython-cd777eaf53e438e2c3b7aab384f18d56b262bc0b.tar.gz cpython-cd777eaf53e438e2c3b7aab384f18d56b262bc0b.tar.bz2 |
Issue #17615: Comparing two Unicode strings now uses wmemcmp() when possible
wmemcmp() is twice faster than a dummy loop (342 usec vs 744 usec) on Fedora
18/x86_64, GCC 4.7.2.
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r-- | PC/pyconfig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index c5f16e5..1284db8 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -645,6 +645,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ #define HAVE_WCSXFRM 1 #endif +/* Define to 1 if you have the `wmemcmp' function. */ +#define HAVE_WMEMCMP 1 + /* Define if the zlib library has inflateCopy */ #define HAVE_ZLIB_COPY 1 |