X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=cad8e39d08d4ba6ba66f91c8cfc857d2eae3d219;hp=c0c00b009fa1ab347ebb97599a2a1e687d4346ca;hb=7222f47350591190a97508f84131d80046f340ce;hpb=57b6df4874228ef6f0fc4d9b98e1db15b57000cf diff --git a/src/misc.cpp b/src/misc.cpp index c0c00b00..cad8e39d 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -178,7 +178,7 @@ void start_logger(bool b) { Logger::start(b); } int cpu_count() { -#if defined(_WIN32) || defined(_WIN64) +#if defined(_WIN32) SYSTEM_INFO s; GetSystemInfo(&s); return s.dwNumberOfProcessors; @@ -204,7 +204,7 @@ int cpu_count() { void timed_wait(WaitCondition& sleepCond, Lock& sleepLock, int msec) { -#if defined(_WIN32) || defined(_WIN64) +#if defined(_WIN32) int tm = msec; #else timespec ts, *tm = &ts; @@ -237,10 +237,8 @@ void prefetch(char* addr) { # if defined(__INTEL_COMPILER) || defined(_MSC_VER) _mm_prefetch(addr, _MM_HINT_T0); - _mm_prefetch(addr+64, _MM_HINT_T0); // 64 bytes ahead # else __builtin_prefetch(addr); - __builtin_prefetch(addr+64); # endif }