X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.cpp;h=3c43e12ce58cb17e5bc376feda94b60ab468430e;hp=151b71f58df6ac789a87ac200b543169a6fe5c6b;hb=ace8e951d70c2986a0af83effcc0d2b2312d29e3;hpb=d4af15f682c1967450233ab62cba1a6c5d601df6 diff --git a/src/tt.cpp b/src/tt.cpp index 151b71f5..3c43e12c 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -92,8 +92,8 @@ TTEntry* TranspositionTable::probe(const Key key, bool& found) const { // nature we add 259 (256 is the modulus plus 3 to keep the lowest // two bound bits from affecting the result) to calculate the entry // age correctly even after generation8 overflows into the next cycle. - if ( replace->depth8 - ((259 + generation8 - replace->genBound8) & 0xFC) * 2 * ONE_PLY - > tte[i].depth8 - ((259 + generation8 - tte[i].genBound8) & 0xFC) * 2 * ONE_PLY) + if ( replace->depth8 - ((259 + generation8 - replace->genBound8) & 0xFC) * 2 + > tte[i].depth8 - ((259 + generation8 - tte[i].genBound8) & 0xFC) * 2) replace = &tte[i]; return found = false, replace;