1. 04 Jul, 2015 1 commit
  2. 03 Jul, 2015 8 commits
  3. 02 Jul, 2015 3 commits
  4. 01 Jul, 2015 5 commits
  5. 29 Jun, 2015 2 commits
  6. 28 Jun, 2015 14 commits
  7. 27 Jun, 2015 2 commits
    • David Vierra's avatar
      Actually check if __cplusplus is defined. · 65fcccc1
      David Vierra authored
      65fcccc1
    • David Vierra's avatar
      Rewrite __Pyx_sst_abs using only preprocessor macros, and add a case for 64-bit MSVC · 2e1f7fdf
      David Vierra authored
      Comparing `sizeof(Py_ssize_t)` to different sizes at compile time results in warnings or errors when the C++ compiler tries to find a function matching `abs(value)` (Per the standard library spec, no functions match if `ssize_t` is a typedef of `long long`). Luckily, `pyport.h` provides some SIZEOF macros we can use at preprocess time. __Pyx_sst_abs is now conditionally defined to a much shorter expression.
      
      64-bit MSVC is one case where `ssize_t` is a `long long`. Instead of falling back to `((value<0) ? -value : value))`, I added a check for 64-bit MSVC that calls the MS-specific function `_abs64(long long)`
      
      This change also includes the change given by PR #402, improved with a check against the available C++ version as `std::abs` is only available on C++11.
      2e1f7fdf
  8. 25 Jun, 2015 4 commits
  9. 23 Jun, 2015 1 commit