diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-08-14 13:43:39 +0000 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2010-08-14 13:43:39 +0000 |
commit | 095b454ae922fed8ceda320e7f0b619f55e4eebb (patch) | |
tree | 0b420aa982dc791c1ed8ddb2c0a1713025e431b6 /numpy | |
parent | fe3a17a297d593fed2980f311477b0e021e32262 (diff) | |
download | numpy-095b454ae922fed8ceda320e7f0b619f55e4eebb.tar.gz |
BUG: define LDEXPL/FREXPL functions for MSVC builds (see #1499).
Note that this doesn't fix the Solaris issue, so #1499 not closed.
Thanks to Christoph Gohlke.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/private/npy_config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/core/src/private/npy_config.h b/numpy/core/src/private/npy_config.h index e16401496..b4842b832 100644 --- a/numpy/core/src/private/npy_config.h +++ b/numpy/core/src/private/npy_config.h @@ -9,6 +9,16 @@ #undef HAVE_HYPOT #endif +/* Safe to use ldexp and frexp for long double for MSVC builds */ +#if (SIZEOF_LONG_DOUBLE == SIZEOF_DOUBLE) || defined(_MSC_VER) + #ifdef HAVE_LDEXP + #define HAVE_LDEXPL 1 + #endif + #ifdef HAVE_FREXP + #define HAVE_FREXPL 1 + #endif +#endif + /* Disable broken Sun Workshop Pro math functions */ #ifdef __SUNPRO_C #undef HAVE_ATAN2 |