Issue #5724: Fix cmath failures on Solaris 10.

This commit is contained in:
Mark Dickinson 2009-05-04 13:30:43 +00:00
parent 6703225258
commit e05e8409e1
7 changed files with 397 additions and 22 deletions

View file

@ -1,5 +1,18 @@
#include "Python.h"
#ifdef X87_DOUBLE_ROUNDING
/* On x86 platforms using an x87 FPU, this function is called from the
Py_FORCE_DOUBLE macro (defined in pymath.h) to force a floating-point
number out of an 80-bit x87 FPU register and into a 64-bit memory location,
thus rounding from extended precision to double precision. */
double _Py_force_double(double x)
{
volatile double y;
y = x;
return y;
}
#endif
#ifndef HAVE_HYPOT
double hypot(double x, double y)
{