projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f811a56
)
Further simplification of TT replace strategy
author
Jean-Francois Romang
<jeanfrancois.romang@gmail.com>
Thu, 27 Mar 2014 17:38:19 +0000 (18:38 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 29 Mar 2014 09:05:02 +0000 (10:05 +0100)
No functional change
src/tt.cpp
patch
|
blob
|
history
diff --git
a/src/tt.cpp
b/src/tt.cpp
index
d887844
..
efaf992
100644
(file)
--- a/
src/tt.cpp
+++ b/
src/tt.cpp
@@
-111,9
+111,9
@@
void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m,
}
// Implement replace strategy
- if ( (replace->generation8 == generation) * 2
- - (tte->generation8 == generation || tte->bound() == BOUND_EXACT) * 2
- + (tte->depth16 < replace->depth16) > 0)
+ if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT)
+ - (replace->generation8 == generation)
+ < (tte->depth16 < replace->depth16))
replace = tte;
}