X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b6fc06979599704a6bc67acbc367bb3ef0815b9f;hp=9386e453ca8e9d5ffaf7ef44bfd3f25bd3a7cd7d;hb=258da28e79d99f75e0b626697bda2d459a37c0e6;hpb=4220f191d8c1d597ff66e41f90af11367b0ebd7f diff --git a/src/search.cpp b/src/search.cpp index 9386e453..b6fc0697 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1335,7 +1335,7 @@ split_point_start: // At split points actual search starts from here kingAtt = pos.attacks_from(ksq); pc = pos.piece_moved(move); - occ = pos.occupied_squares() & ~(1ULL << from) & ~(1ULL << ksq); + occ = pos.pieces() ^ from ^ ksq; oldAtt = pos.attacks_from(pc, from, occ); newAtt = pos.attacks_from(pc, to, occ); @@ -1403,7 +1403,7 @@ split_point_start: // At split points actual search starts from here ksq = pos.king_square(pos.side_to_move()); if ( piece_is_slider(p1) && (squares_between(t1, ksq) & f2) - && (pos.attacks_from(p1, t1, pos.occupied_squares() ^ f2) & ksq)) + && (pos.attacks_from(p1, t1, pos.pieces() ^ f2) & ksq)) return true; return false;