diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2015-08-02 19:40:39 -0700 |
---|---|---|
committer | Christoph Gohlke <cgohlke@uci.edu> | 2015-08-02 19:40:39 -0700 |
commit | 55388e079679898f22e4315914ee5924c4a4b094 (patch) | |
tree | 9365192f0a70c449d1917ecbc9ea0ed55dd91d47 | |
parent | a39d355d4c286e823e9c48efb9345ad3705fdbad (diff) | |
download | numpy-55388e079679898f22e4315914ee5924c4a4b094.tar.gz |
BLD: llabs not available with msvc9
-rw-r--r-- | numpy/core/src/umath/simd.inc.src | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/umath/simd.inc.src b/numpy/core/src/umath/simd.inc.src index 55a638d6c..e4ec46cbc 100644 --- a/numpy/core/src/umath/simd.inc.src +++ b/numpy/core/src/umath/simd.inc.src @@ -35,6 +35,9 @@ abs_intp(npy_intp x) return abs(x); #elif (NPY_SIZEOF_INTP <= NPY_SIZEOF_LONG) return labs(x); +#elif defined(_MSC_VER) && (_MSC_VER < 1600) + /* llabs is not available with Visual Studio 2008 */ + return x > 0 ? x : -x; #else return llabs(x); #endif |