X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=cad8e39d08d4ba6ba66f91c8cfc857d2eae3d219;hp=4ff1c0cfdf5e5cb44a17c978584bd81861555925;hb=7222f47350591190a97508f84131d80046f340ce;hpb=aa2368a6878a867fe63247ee2adf2fde3dfe22be diff --git a/src/misc.cpp b/src/misc.cpp index 4ff1c0cf..cad8e39d 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -33,7 +33,7 @@ using namespace std; /// Version number. If Version is left empty, then Tag plus current /// date, in the format DD-MM-YY, are used as a version number. -static const string Version = "3"; +static const string Version = ""; static const string Tag = ""; @@ -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 }