diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2022-01-02 19:57:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-02 19:57:11 -0700 |
commit | d64df4553e7763208e150d6039dcb6fd3d5ef0be (patch) | |
tree | 3d011a516f43ac68e8b0d83a5f3e61afa1d0180a /numpy | |
parent | 2a341c5cd002a37ccff23d043535f94d6af585cb (diff) | |
parent | 2710ec70a6e2e7bb8af79373af4a88807863a6e9 (diff) | |
download | numpy-d64df4553e7763208e150d6039dcb6fd3d5ef0be.tar.gz |
Merge pull request #20712 from isuruf/popcnt
BUG: Restore vc141 support
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/npymath/npy_math_internal.h.src | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/npymath/npy_math_internal.h.src b/numpy/core/src/npymath/npy_math_internal.h.src index 5b418342f..15d35637f 100644 --- a/numpy/core/src/npymath/npy_math_internal.h.src +++ b/numpy/core/src/npymath/npy_math_internal.h.src @@ -54,6 +54,9 @@ * ==================================================== */ #include "npy_math_private.h" +#ifdef _MSC_VER +# include <intrin.h> // for __popcnt +#endif /* Magic binary numbers used by bit_count * For type T, the magic numbers are computed as follows: |