mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 00:26:33 +08:00
Let prefetch to be enabled by default on Windows
When compiling with MSVC we don't use the Makefile so tweak a bit the Makefile to allow to let prefetch in by default so that it works under Windows. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#if defined(USE_PREFETCH)
|
||||
#if !defined(NO_PREFETCH)
|
||||
# include <xmmintrin.h>
|
||||
#endif
|
||||
|
||||
@@ -166,7 +166,7 @@ TTEntry* TranspositionTable::retrieve(const Key posKey) const {
|
||||
/// to be loaded from RAM, that can be very slow. When we will
|
||||
/// subsequently call retrieve() the TT data will be already
|
||||
/// quickly accessible in L1/L2 CPU cache.
|
||||
#if !defined(USE_PREFETCH)
|
||||
#if defined(NO_PREFETCH)
|
||||
void TranspositionTable::prefetch(const Key) const {}
|
||||
#else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user