Lines 4-10
Link Here
|
4 |
#include "numpy/libnumarray.h" |
4 |
#include "numpy/libnumarray.h" |
5 |
#include <float.h> |
5 |
#include <float.h> |
6 |
|
6 |
|
7 |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) |
7 |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__MINGW32__) |
8 |
#include <fenv.h> |
8 |
#include <fenv.h> |
9 |
#elif defined(__CYGWIN__) |
9 |
#elif defined(__CYGWIN__) |
10 |
#include "numpy/fenv/fenv.h" |
10 |
#include "numpy/fenv/fenv.h" |
Lines 231-237
Link Here
|
231 |
} |
231 |
} |
232 |
|
232 |
|
233 |
/* Likewise for Integer overflows */ |
233 |
/* Likewise for Integer overflows */ |
234 |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) |
234 |
#if defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__MINGW32__) |
235 |
static int int_overflow_error(Float64 value) { /* For x86_64 */ |
235 |
static int int_overflow_error(Float64 value) { /* For x86_64 */ |
236 |
feraiseexcept(FE_OVERFLOW); |
236 |
feraiseexcept(FE_OVERFLOW); |
237 |
return (int) value; |
237 |
return (int) value; |
Lines 2939-2945
Link Here
|
2939 |
return retstatus; |
2939 |
return retstatus; |
2940 |
} |
2940 |
} |
2941 |
|
2941 |
|
2942 |
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) |
2942 |
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__MINGW32__) |
2943 |
|
2943 |
|
2944 |
static int |
2944 |
static int |
2945 |
NA_checkFPErrors(void) |
2945 |
NA_checkFPErrors(void) |