]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Use popcount intrinsic with Interl compiler
[stockfish] / src / types.h
index c43eee3df14ed3bea9692b44fad299d40bde1f71..e45d2674fe70a1b3d293d7d848404f621c4de10c 100644 (file)
 #if defined(_WIN64) && defined(_MSC_VER) // No Makefile used
 #  include <intrin.h> // MSVC popcnt and bsfq instrinsics
 #  define IS_64BIT
-#  define USE_BSFQ
 #endif
 
-#if defined(USE_POPCNT) && defined(__INTEL_COMPILER) && defined(_MSC_VER)
+#if defined(USE_POPCNT) && (defined(__INTEL_COMPILER) || defined(_MSC_VER))
 #  include <nmmintrin.h> // Intel header for _mm_popcnt_u64() intrinsic
 #endif