mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
Disabled TT when EVAL_LEARN is enabled.
This commit is contained in:
parent
641724e3a5
commit
5772509e8b
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue