Merged revisions 62380,62382-62383 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62380 | christian.heimes | 2008-04-19 01:13:07 +0200 (Sat, 19 Apr 2008) | 3 lines

  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 :)
........
  r62382 | christian.heimes | 2008-04-19 01:40:40 +0200 (Sat, 19 Apr 2008) | 2 lines

  Added new files to Windows project files
  More Windows related fixes are coming soon
........
  r62383 | christian.heimes | 2008-04-19 01:49:11 +0200 (Sat, 19 Apr 2008) | 1 line

  Stupid me. Py_RETURN_NAN should actually return something ...
........
This commit is contained in:
Christian Heimes 2008-04-19 00:31:39 +00:00
parent dc3e06ce3a
commit 53876d9cd8
27 changed files with 5101 additions and 1167 deletions

View file

@ -587,6 +587,10 @@ SOURCE=..\..\Python\pyfpe.c
# End Source File
# Begin Source File
SOURCE=..\..\Python\pymath.c
# End Source File
# Begin Source File
SOURCE=..\..\Python\pystate.c
# End Source File
# Begin Source File

View file

@ -697,6 +697,9 @@
<File
RelativePath="..\..\Python\pyfpe.c">
</File>
<File
RelativePath="..\..\Python\pymath.c">
</File>
<File
RelativePath="..\..\Python\pystate.c">
</File>

View file

@ -1706,6 +1706,10 @@
RelativePath="..\..\Python\pyfpe.c"
>
</File>
<File
RelativePath="..\..\Python\pymath.c"
>
</File>
<File
RelativePath="..\..\Python\pystate.c"
>

View file

@ -207,12 +207,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 */
@ -392,7 +393,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