X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsearch.cpp;h=eb7666afd5142b85c624fabaeeba71b7dce04b77;hb=1d0159075e916c738760b788d605b71b3736cb7c;hp=0318d63138ea41dd9913808c221e2540d617f8b0;hpb=321320b0814d5994640977cf96e015eba8ce22d5;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 0318d631..eb7666af 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -736,7 +736,7 @@ namespace { excludedMove = ss->excludedMove; posKey = excludedMove ? pos.get_exclusion_key() : pos.get_key(); - tte = TT.retrieve(posKey); + tte = TT.probe(posKey); ttMove = tte ? tte->move() : MOVE_NONE; // At PV nodes we check for exact scores, while at non-PV nodes we check for @@ -872,7 +872,7 @@ namespace { ss->skipNullMove = false; ttMove = ss->bestMove; - tte = TT.retrieve(posKey); + tte = TT.probe(posKey); } split_point_start: // At split points actual search starts from here @@ -1277,7 +1277,7 @@ split_point_start: // At split points actual search starts from here // Transposition table lookup. At PV nodes, we don't use the TT for // pruning, but only for move ordering. - tte = TT.retrieve(pos.get_key()); + tte = TT.probe(pos.get_key()); ttMove = (tte ? tte->move() : MOVE_NONE); if (!PvNode && tte && ok_to_use_TT(tte, ttDepth, beta, ss->ply)) @@ -1987,7 +1987,7 @@ split_point_start: // At split points actual search starts from here pos.do_move(pv[0], *st++); - while ( (tte = TT.retrieve(pos.get_key())) != NULL + while ( (tte = TT.probe(pos.get_key())) != NULL && tte->move() != MOVE_NONE && pos.move_is_legal(tte->move()) && ply < PLY_MAX @@ -2017,7 +2017,7 @@ split_point_start: // At split points actual search starts from here do { k = pos.get_key(); - tte = TT.retrieve(k); + tte = TT.probe(k); // Don't overwrite existing correct entries if (!tte || tte->move() != pv[ply])