mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
+3
-3
@@ -1256,6 +1256,9 @@ moves_loop: // When in check search starts from here
|
|||||||
{
|
{
|
||||||
assert(is_ok(move));
|
assert(is_ok(move));
|
||||||
|
|
||||||
|
// Speculative prefetch as early as possible
|
||||||
|
prefetch(TT.first_entry(pos.key_after(move)));
|
||||||
|
|
||||||
givesCheck = type_of(move) == NORMAL && !pos.discovered_check_candidates()
|
givesCheck = type_of(move) == NORMAL && !pos.discovered_check_candidates()
|
||||||
? pos.check_squares(type_of(pos.piece_on(from_sq(move)))) & to_sq(move)
|
? pos.check_squares(type_of(pos.piece_on(from_sq(move)))) & to_sq(move)
|
||||||
: pos.gives_check(move);
|
: pos.gives_check(move);
|
||||||
@@ -1297,9 +1300,6 @@ moves_loop: // When in check search starts from here
|
|||||||
&& !pos.see_ge(move))
|
&& !pos.see_ge(move))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Speculative prefetch as early as possible
|
|
||||||
prefetch(TT.first_entry(pos.key_after(move)));
|
|
||||||
|
|
||||||
// Check for legality just before making the move
|
// Check for legality just before making the move
|
||||||
if (!pos.legal(move))
|
if (!pos.legal(move))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user