From 5772509e8be630805f75b9bec64a81eff353901b Mon Sep 17 00:00:00 2001 From: Hisayori Noda Date: Sat, 22 Jun 2019 00:40:25 +0900 Subject: [PATCH] Disabled TT when EVAL_LEARN is enabled. --- src/tt.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tt.cpp b/src/tt.cpp index b8fe7567..0b2bf9e9 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -118,6 +118,9 @@ void TranspositionTable::clear() { /// TTEntry t2 if its replace value is greater than that of t2. TTEntry* TranspositionTable::probe(const Key key, bool& found) const { +#if defined(EVAL_LEARN) + return found = false, first_entry(0); +#else TTEntry* const tte = first_entry(key); const uint16_t key16 = key >> 48; // Use the high 16 bits as key inside the cluster @@ -142,6 +145,7 @@ TTEntry* TranspositionTable::probe(const Key key, bool& found) const { replace = &tte[i]; return found = false, replace; +#endif }