summaryrefslogtreecommitdiff
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-04-08 22:43:44 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-04-08 22:43:44 +0200
commit53f1420ba040714b0fe870d7040990a2179c7ef3 (patch)
treedb0602392d30eaccb4e81cdb0f832b04fb12bb54 /PC/pyconfig.h
parentb7aea9be6d4bcc7bef96958b19523c2ae44df19e (diff)
downloadcpython-53f1420ba040714b0fe870d7040990a2179c7ef3.tar.gz
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index c5f16e580f..1284db8610 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