Commit 59f74fe7 authored by Ian Henriksen's avatar Ian Henriksen

Added a special case to properly handle __Pyx_sst_abs on 64 bit windows

when building with gcc or clang.
parent 19a3842d
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
// abs() is defined for long, but 64-bits type on MSVC is long long. // abs() is defined for long, but 64-bits type on MSVC is long long.
// Use MS-specific _abs64 instead. // Use MS-specific _abs64 instead.
#define __Pyx_sst_abs(value) _abs64(value) #define __Pyx_sst_abs(value) _abs64(value)
#elif defined (__GNUC__)
// gcc or clang on 64 bit windows.
#define __Pyx_sst_abs(value) __builtin_llabs(value)
#else #else
#define __Pyx_sst_abs(value) ((value<0) ? -value : value) #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment