diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2015-12-11 13:11:17 -0800 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-12 08:51:15 -0700 |
commit | 77fcac1e555504042830a7c6db5900b0ba341c8e (patch) | |
tree | 068d2ac519ca81b3821190c7a5bb158b33dedc48 | |
parent | ccb842593b41a7bc111f4e1eca0ad0975da07bfd (diff) | |
download | numpy-77fcac1e555504042830a7c6db5900b0ba341c8e.tar.gz |
BUG: Disable 32-bit msvc9 compiler optimizations for npy_rint
-rw-r--r-- | numpy/core/src/npymath/npy_math.c.src | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/src/npymath/npy_math.c.src b/numpy/core/src/npymath/npy_math.c.src index 7f62810d5..32fa41788 100644 --- a/numpy/core/src/npymath/npy_math.c.src +++ b/numpy/core/src/npymath/npy_math.c.src @@ -260,6 +260,9 @@ double npy_atanh(double x) #endif #ifndef HAVE_RINT +#if defined(_MSC_VER) && (_MSC_VER == 1500) && !defined(_WIN64) +#pragma optimize("", off) +#endif double npy_rint(double x) { double y, r; @@ -280,6 +283,9 @@ double npy_rint(double x) } return y; } +#if defined(_MSC_VER) && (_MSC_VER == 1500) && !defined(_WIN64) +#pragma optimize("", on) +#endif #endif #ifndef HAVE_TRUNC |