X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmisc.cpp;h=7cc6192c1b48b74ceb5014cc1b667892e2d17745;hb=f4dadee5e2fd27a32e64179f737c1c3825098ea5;hp=2fb5e816f0320f8a504afe8d8e961d10b2d6b5b2;hpb=808a312e1ce8cf20bd2ee668a05a246bf0e0f3b2;p=stockfish diff --git a/src/misc.cpp b/src/misc.cpp index 2fb5e816..7cc6192c 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -191,11 +191,11 @@ void prefetch(char*) {} void prefetch(char* addr) { -#if defined(__INTEL_COMPILER) || defined(__ICL) +# if defined(__INTEL_COMPILER) || defined(__ICL) // This hack prevents prefetches to be optimized away by // Intel compiler. Both MSVC and gcc seems not affected. __asm__ (""); -#endif +# endif _mm_prefetch(addr, _MM_HINT_T2); _mm_prefetch(addr+64, _MM_HINT_T2); // 64 bytes ahead