mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Do not compile POPCNT if NO_POPCNT is defined
Also rename DISABLE_POPCNT_SUPPORT in NO_POPCNT and simplify a bit the macro logic. Always define a __popcnt64()or _mm_popcnt_u64() template, if the proper function with the same name is defined in the intrinsics header, then it will be choosen as first otherwise we fall back on the dummy template that is never called at runtime anyway because cpu_has_popcnt() returns false. This fixes the compile error reported by Jim. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -58,7 +58,7 @@ typedef uint64_t Bitboard;
|
||||
#endif
|
||||
|
||||
// Check for 64 bits for different compilers: Intel, MSVC and gcc
|
||||
#if defined(__x86_64) || defined(_WIN64) || (__SIZEOF_INT__ > 4)
|
||||
#if defined(__x86_64) || defined(_M_X64) || defined(_WIN64) || (__SIZEOF_INT__ > 4)
|
||||
#define IS_64BIT
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user