X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftt.cpp;h=12e6b636d0b98be117782d5c20bf6486dfba5cab;hb=efdd1e697a15fba09355f3dbcb90d05524080665;hp=a2ad42d0e54f7af87e53b75fca03eb6a300da340;hpb=41816b7ced99c0bd096607fd8a35dbc0b427d455;p=stockfish diff --git a/src/tt.cpp b/src/tt.cpp index a2ad42d0..12e6b636 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -25,7 +25,7 @@ #include #include #include -#if !(defined(__hpux) || defined(__ppc__) || defined(__ppc64__) || defined(__arm__)) +#if defined(USE_PREFETCH) # include #endif @@ -121,10 +121,6 @@ void TranspositionTable::store(const Key posKey, Value v, ValueType t, Depth d, { if (!tte->key() || tte->key() == posKey32) // empty or overwrite old { - // Do not overwrite when new type is VALUE_TYPE_EV_LO - if (tte->key() && t == VALUE_TYPE_EV_LO) - return; - // Preserve any exsisting ttMove if (m == MOVE_NONE) m = tte->move(); @@ -170,8 +166,8 @@ 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(__hpux) || defined(__ppc__) || defined(__ppc64__) || defined(__arm__) -void TranspositionTable::prefetch(const Key) const {} // Not supported on HP UX +#if !defined(USE_PREFETCH) +void TranspositionTable::prefetch(const Key) const {} #else void TranspositionTable::prefetch(const Key posKey) const {