mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Fix POPCNT support for Intel compiler under Windows
Reported by Martin Wyngaarden that also confirmed this patch to work. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user