Skip to content

Commit d64df45

Browse files
authored
Merge pull request numpy#20712 from isuruf/popcnt
BUG: Restore vc141 support
2 parents 2a341c5 + 2710ec7 commit d64df45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numpy/core/src/npymath/npy_math_internal.h.src

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
* ====================================================
5555
*/
5656
#include "npy_math_private.h"
57+
#ifdef _MSC_VER
58+
# include <intrin.h> // for __popcnt
59+
#endif
5760

5861
/* Magic binary numbers used by bit_count
5962
* For type T, the magic numbers are computed as follows:

0 commit comments

Comments
 (0)