Skip to content

Commit c900978

Browse files
authored
Merge pull request numpy#20931 from nsait-linaro/fix_missing_arm64_intrinsics
BUG: Fix missing intrinsics for windows/arm64 target
2 parents 617822d + d94fc60 commit c900978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ npy_popcountu@c@(npy_@type@ a)
887887
/* use built-in popcount if present, else use our implementation */
888888
#if (defined(__clang__) || defined(__GNUC__)) && NPY_BITSOF_@STYPE@ >= 32
889889
return __builtin_popcount@c@(a);
890-
#elif defined(_MSC_VER) && NPY_BITSOF_@STYPE@ >= 16
890+
#elif defined(_MSC_VER) && NPY_BITSOF_@STYPE@ >= 16 && !defined(_M_ARM64) && !defined(_M_ARM)
891891
/* no builtin __popcnt64 for 32 bits */
892892
#if defined(_WIN64) || (defined(_WIN32) && NPY_BITSOF_@STYPE@ != 64)
893893
return TO_BITS_LEN(__popcnt)(a);

0 commit comments

Comments
 (0)