We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 617822d + d94fc60 commit c900978Copy full SHA for c900978
numpy/core/src/npymath/npy_math_internal.h.src
@@ -887,7 +887,7 @@ npy_popcountu@c@(npy_@type@ a)
887
/* use built-in popcount if present, else use our implementation */
888
#if (defined(__clang__) || defined(__GNUC__)) && NPY_BITSOF_@STYPE@ >= 32
889
return __builtin_popcount@c@(a);
890
-#elif defined(_MSC_VER) && NPY_BITSOF_@STYPE@ >= 16
+#elif defined(_MSC_VER) && NPY_BITSOF_@STYPE@ >= 16 && !defined(_M_ARM64) && !defined(_M_ARM)
891
/* no builtin __popcnt64 for 32 bits */
892
#if defined(_WIN64) || (defined(_WIN32) && NPY_BITSOF_@STYPE@ != 64)
893
return TO_BITS_LEN(__popcnt)(a);
0 commit comments