X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=608d772501fc54c70967d16e55ed80ba9cccb573;hp=33c3f1f70acceb9287ab08a36aed4db62a432064;hb=dae843d4d6cba8593a0426c9a2f7418a3c76d7f8;hpb=0a18adb02ac375f7d7fc31ef76b59e13a0263773 diff --git a/src/misc.cpp b/src/misc.cpp index 33c3f1f7..608d7725 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 YYMMDD) is used as a version number. -static const string Version = "2.3"; +static const string Version = ""; static const string Tag = ""; @@ -227,18 +227,21 @@ void prefetch(char*) {} #else -# include - void prefetch(char* addr) { -# if defined(__INTEL_COMPILER) || defined(__ICL) +# if defined(__INTEL_COMPILER) // This hack prevents prefetches to be optimized away by // Intel compiler. Both MSVC and gcc seems not affected. __asm__ (""); # endif - _mm_prefetch(addr, _MM_HINT_T2); - _mm_prefetch(addr+64, _MM_HINT_T2); // 64 bytes ahead +# 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 } #endif