X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=daafd3fb650cbd009cee475402474f2786d43871;hp=2f99668d4457941b3d9ca0e2b5d0fba56890563a;hb=99c9cae5865575c03a3eeea4ee6ea54ec8d59b18;hpb=3c07603dac03f0da20194097cf4eb1a396fea60d diff --git a/src/misc.cpp b/src/misc.cpp index 2f99668d..daafd3fb 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -135,7 +135,7 @@ Time::point Time::now() { /// Debug functions used mainly to collect run-time statistics void dbg_hit_on(bool b) { ++hits[0]; if (b) ++hits[1]; } -void dbg_hit_on_c(bool c, bool b) { if (c) dbg_hit_on(b); } +void dbg_hit_on(bool c, bool b) { if (c) dbg_hit_on(b); } void dbg_mean_of(int v) { ++means[0]; means[1] += v; } void dbg_print() { @@ -176,11 +176,11 @@ void start_logger(bool b) { Logger::start(b); } /// which can be quite slow. #ifdef NO_PREFETCH -void prefetch(char*) {} +void prefetch(void*) {} #else -void prefetch(char* addr) { +void prefetch(void* addr) { # if defined(__INTEL_COMPILER) // This hack prevents prefetches from being optimized away by @@ -189,7 +189,7 @@ void prefetch(char* addr) { # endif # if defined(__INTEL_COMPILER) || defined(_MSC_VER) - _mm_prefetch(addr, _MM_HINT_T0); + _mm_prefetch((char*)addr, _MM_HINT_T0); # else __builtin_prefetch(addr); # endif