mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Fix POPCNT detection gcc compile error
Also don't use __cpuid() intrinsic for Intel under Linux because gives wrong results when detecting HT, use the gcc version instead. Finally clean up the code. Error was due to changed __cpuid() signature for gcc compiler. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -75,9 +75,7 @@ typedef uint64_t Bitboard;
|
||||
|
||||
// Define a __cpuid() function for gcc compilers, for Intel and MSVC
|
||||
// is already available as an intrinsic.
|
||||
#if defined(__INTEL_COMPILER)
|
||||
#include <nmmintrin.h>
|
||||
#elif defined(_MSC_VER)
|
||||
#if defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
#elif defined(__GNUC__)
|
||||
inline void __cpuid(int CPUInfo[4], int InfoType)
|
||||
|
||||
Reference in New Issue
Block a user