]> git.sesse.net Git - stockfish/commitdiff
Simplify away smp adjustment in TT use
authorMichael Chaly <Vizvezdenec@gmail.com>
Mon, 15 Aug 2022 05:52:55 +0000 (08:52 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 15 Aug 2022 15:54:56 +0000 (17:54 +0200)
Passed STC
https://tests.stockfishchess.org/tests/view/62f7d81f23d42b50a8dab568
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 98160 W: 26307 L: 26165 D: 45688
Ptnml(0-2): 201, 10282, 27960, 10448, 189

Passed LTC
https://tests.stockfishchess.org/tests/view/62f8d1a623d42b50a8dad4fb
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 81544 W: 22346 L: 22200 D: 36998
Ptnml(0-2): 44, 7542, 25446, 7704, 36

closes https://github.com/official-stockfish/Stockfish/pull/4131

No functional change (single threaded).

src/search.cpp

index 7244b8d661eaee133e774e28b1ca3f6117be69cd..6d78403ffd975db6cac1303266730e2950eb7775 100644 (file)
@@ -636,7 +636,7 @@ namespace {
     // At non-PV nodes we check for an early TT cutoff
     if (  !PvNode
         && ss->ttHit
-        && tte->depth() > depth - ((int)thisThread->id() & 0x1) - (tte->bound() == BOUND_EXACT)
+        && tte->depth() > depth - (tte->bound() == BOUND_EXACT)
         && ttValue != VALUE_NONE // Possible in case of TT access race
         && (tte->bound() & (ttValue >= beta ? BOUND_LOWER : BOUND_UPPER)))
     {