X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=e20c822f5998902ba2149d13504bd9846a1833d0;hp=dc0b51525981ba3656159c5255ebd06977ef5695;hb=c5de4080dba8e9b3248f06bd6c168c22e9fbfd92;hpb=d8f683760c9eb6d2c4714ec83e717dd2143de55c diff --git a/src/position.cpp b/src/position.cpp index dc0b5152..e20c822f 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -377,7 +377,7 @@ void Position::set_state(StateInfo* si) const { /// Position::set() is an overload to initialize the position object with -/// the given endgame code string like "KBPKN". It is manily an helper to +/// the given endgame code string like "KBPKN". It is mainly a helper to /// get the material key out of an endgame code. Position is not playable, /// indeed is even not guaranteed to be legal. @@ -827,7 +827,7 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) { // Update pawn hash key and prefetch access to pawnsTable st->pawnKey ^= Zobrist::psq[pc][from] ^ Zobrist::psq[pc][to]; - prefetch(thisThread->pawnsTable[st->pawnKey]); + prefetch2(thisThread->pawnsTable[st->pawnKey]); // Reset rule 50 draw counter st->rule50 = 0;