]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Fix POPCNT support for Intel compiler under Windows
[stockfish] / src / types.h
index 161117f8536e433511824544c0ff8fbe8f653d7a..a379d5444956ef63537e4035eb27f1847faf70ca 100644 (file)
@@ -86,6 +86,11 @@ typedef uint64_t Bitboard;
 #define USE_BSFQ
 #endif
 
+// Intel header for _mm_popcnt_u64() intrinsic
+#if defined(USE_POPCNT) && defined(_MSC_VER) && defined(__INTEL_COMPILER)
+#include <nmmintrin.h>
+#endif
+
 // Cache line alignment specification
 #if defined(_MSC_VER) || defined(__INTEL_COMPILER)
 #define CACHE_LINE_ALIGNMENT __declspec(align(64))