summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-04-18 23:13:07 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-04-18 23:13:07 (GMT)
commit6f34109384f3a78d5f4f8bdd418a89caca19631e (patch)
treef5b446eb4cd2993b6be5a373148530976ce39f4b /PC
parent858a77099e094ce4ef57778d38230ec36db2e805 (diff)
downloadcpython-6f34109384f3a78d5f4f8bdd418a89caca19631e.zip
cpython-6f34109384f3a78d5f4f8bdd418a89caca19631e.tar.gz
cpython-6f34109384f3a78d5f4f8bdd418a89caca19631e.tar.bz2
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
Diffstat (limited to 'PC')
-rw-r--r--PC/pyconfig.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index afe29bf..98d79ad 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -211,12 +211,13 @@ typedef _W64 int ssize_t;
#endif /* MS_WIN32 && !MS_WIN64 */
typedef int pid_t;
-#define hypot _hypot
#include <float.h>
#define Py_IS_NAN _isnan
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
#define Py_IS_FINITE(X) _finite(X)
+#define copysign _copysign
+#define hypot _hypot
#endif /* _MSC_VER */
@@ -396,7 +397,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Fairly standard from here! */
/* Define to 1 if you have the `copysign' function. */
-/* #define HAVE_COPYSIGN 1*/
+#define HAVE_COPYSIGN 1
/* Define to 1 if you have the `isinf' function. */
#define HAVE_ISINF 1