win: include intrin header in Windows on ARM

intrin header is needed for _BitScanReverse and
_BitScanReverse64
This commit is contained in:
Adam Kallai 2021-08-27 16:39:24 +02:00
parent 6f429a202d
commit 1415817d8d

View File

@ -109,7 +109,8 @@
#endif
// required for __cpuid, needs to be included after cmath
#if EIGEN_COMP_MSVC && EIGEN_ARCH_i386_OR_x86_64 && !EIGEN_OS_WINCE
// also required for _BitScanReverse on Windows on ARM
#if EIGEN_COMP_MSVC && (EIGEN_ARCH_i386_OR_x86_64 || EIGEN_ARCH_ARM64) && !EIGEN_OS_WINCE
#include <intrin.h>
#endif