X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=0ca56571ee96f723e8b25991ebbc8efbc29a5e47;hp=16ae0a6b338d5986dea9c03c0232771d4546eb20;hb=002062ae934c1fae3e56157e8e7e6451b552ada5;hpb=4064ee540649cb46ad4cc4a6080bd4ef41314cb9;ds=sidebyside diff --git a/src/misc.cpp b/src/misc.cpp index 16ae0a6b..0ca56571 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -24,7 +24,7 @@ #include "misc.h" #include "thread.h" -#if defined(__hpux) +#ifdef __hpux # include #endif @@ -173,7 +173,7 @@ void start_logger(bool b) { Logger::start(b); } int cpu_count() { -#if defined(_WIN32) +#ifdef _WIN32 SYSTEM_INFO s; GetSystemInfo(&s); return s.dwNumberOfProcessors; @@ -199,7 +199,7 @@ int cpu_count() { void timed_wait(WaitCondition& sleepCond, Lock& sleepLock, int msec) { -#if defined(_WIN32) +#ifdef _WIN32 int tm = msec; #else timespec ts, *tm = &ts; @@ -216,7 +216,7 @@ void timed_wait(WaitCondition& sleepCond, Lock& sleepLock, int msec) { /// prefetch() preloads the given address in L1/L2 cache. This is a non /// blocking function and do not stalls the CPU waiting for data to be /// loaded from memory, that can be quite slow. -#if defined(NO_PREFETCH) +#ifdef NO_PREFETCH void prefetch(char*) {}