mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Another Intel warning sqeezed
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
279ed7ed48
commit
ce93a202b5
1 changed files with 23 additions and 23 deletions
|
@ -199,18 +199,18 @@ int generate_evasions(const Position& pos, MoveStack* mlist) {
|
||||||
|
|
||||||
while (b1)
|
while (b1)
|
||||||
{
|
{
|
||||||
Square to = pop_1st_bit(&b1);
|
to = pop_1st_bit(&b1);
|
||||||
|
|
||||||
// Make sure to is not attacked by the other side. This is a bit ugly,
|
// Make sure to is not attacked by the other side. This is a bit ugly,
|
||||||
// because we can't use Position::square_is_attacked. Instead we use
|
// because we can't use Position::square_is_attacked. Instead we use
|
||||||
// the low-level bishop_attacks_bb and rook_attacks_bb with the bitboard
|
// the low-level bishop_attacks_bb and rook_attacks_bb with the bitboard
|
||||||
// b2 (the occupied squares with the king removed) in order to test whether
|
// b2 (the occupied squares with the king removed) in order to test whether
|
||||||
// the king will remain in check on the destination square.
|
// the king will remain in check on the destination square.
|
||||||
if (!( (bishop_attacks_bb(to, b2) & pos.bishops_and_queens(them))
|
if (!( (bishop_attacks_bb(to, b2) & pos.bishops_and_queens(them))
|
||||||
|| (rook_attacks_bb(to, b2) & pos.rooks_and_queens(them))
|
|| (rook_attacks_bb(to, b2) & pos.rooks_and_queens(them))
|
||||||
|| (pos.piece_attacks<KNIGHT>(to) & pos.knights(them))
|
|| (pos.piece_attacks<KNIGHT>(to) & pos.knights(them))
|
||||||
|| (pos.pawn_attacks(us, to) & pos.pawns(them))
|
|| (pos.pawn_attacks(us, to) & pos.pawns(them))
|
||||||
|| (pos.piece_attacks<KING>(to) & pos.kings(them))))
|
|| (pos.piece_attacks<KING>(to) & pos.kings(them))))
|
||||||
|
|
||||||
mlist[n++].move = make_move(ksq, to);
|
mlist[n++].move = make_move(ksq, to);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue