X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitcount.h;h=43895180c1e9ae7566e16e3f35f29b93e00e18eb;hp=7a05970d2abcb45a96333a34a070504941ac3b20;hb=92bada1a32c7ebd5f5b4438bd85bb003d20bd046;hpb=eaed535c5f00ee75185e798dc2fe445a11e396af diff --git a/src/bitcount.h b/src/bitcount.h index 7a05970d..43895180 100644 --- a/src/bitcount.h +++ b/src/bitcount.h @@ -29,8 +29,6 @@ #if defined(__INTEL_COMPILER) && defined(USE_POPCNT) // Intel compiler -#include - inline bool cpu_has_popcnt() { int CPUInfo[4] = {-1}; @@ -42,8 +40,6 @@ inline bool cpu_has_popcnt() { #elif defined(_MSC_VER) && defined(USE_POPCNT) // Microsoft compiler -#include - inline bool cpu_has_popcnt() { int CPUInfo[4] = {-1}; @@ -55,16 +51,6 @@ inline bool cpu_has_popcnt() { #elif defined(__GNUC__) && defined(USE_POPCNT) // Gcc compiler -inline void __cpuid(unsigned int op, - unsigned int *eax, unsigned int *ebx, - unsigned int *ecx, unsigned int *edx) -{ - *eax = op; - *ecx = 0; - __asm__("cpuid" : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) - : "0" (*eax), "2" (*ecx)); -} - inline bool cpu_has_popcnt() { unsigned int eax, ebx, ecx, edx;