|
|
#include "numpy/libnumarray.h" | #include "numpy/libnumarray.h" |
#include <float.h> | #include <float.h> |
| |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__MINGW32__) |
#include <fenv.h> | #include <fenv.h> |
#elif defined(__CYGWIN__) | #elif defined(__CYGWIN__) |
#include "numpy/fenv/fenv.h" | #include "numpy/fenv/fenv.h" |
|
|
} | } |
| |
/* Likewise for Integer overflows */ | /* Likewise for Integer overflows */ |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__MINGW32__) |
static int int_overflow_error(Float64 value) { /* For x86_64 */ | static int int_overflow_error(Float64 value) { /* For x86_64 */ |
feraiseexcept(FE_OVERFLOW); | feraiseexcept(FE_OVERFLOW); |
return (int) value; | return (int) value; |
|
|
return retstatus; | return retstatus; |
} | } |
| |
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) |
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__MINGW32__) |
| |
static int | static int |
NA_checkFPErrors(void) | NA_checkFPErrors(void) |