From 3287ad57cde72162cf444b467bba78bfddf437c7 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Mar 2017 10:36:57 +0200 Subject: [PATCH 1/2] bpo-26121: Use C library implementation for math functions on Windows: tgamma(), lgamma(), erf() and erfc(). --- PC/pyconfig.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PC/pyconfig.h b/PC/pyconfig.h index a4df5c4f6c2db52..79115c6cf9974cc 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -684,4 +684,16 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ least significant byte first */ #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 +/* Define to 1 if you have the `tgamma' function. */ +#define HAVE_TGAMMA 1 + +/* Define to 1 if you have the `lgamma' function. */ +#define HAVE_LGAMMA 1 + +/* Define to 1 if you have the `erf' function. */ +#define HAVE_ERF 1 + +/* Define to 1 if you have the `erfc' function. */ +#define HAVE_ERFC 1 + #endif /* !Py_CONFIG_H */ From 4ad54fcb5cd6f43449903a4bcc220f7000085f17 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 12 Mar 2017 12:47:08 +0200 Subject: [PATCH 2/2] Revert to using the own implementations of lgamma and gamma. --- PC/pyconfig.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 79115c6cf9974cc..c96c231a05f241b 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -684,12 +684,6 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ least significant byte first */ #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 -/* Define to 1 if you have the `tgamma' function. */ -#define HAVE_TGAMMA 1 - -/* Define to 1 if you have the `lgamma' function. */ -#define HAVE_LGAMMA 1 - /* Define to 1 if you have the `erf' function. */ #define HAVE_ERF 1