1
0
Fork 0

SEE: simplify stm variable initialization

Pull #3458 removed the only usage of pos.see_ge() moving pieces that
don't belong to the side to move, so we can simplify this.
see_ge is on the 'hot path' so it should be optimized.

no functional change
bench: 4687476
pull/3607/head
pb00067 2021-07-07 14:32:54 +02:00
parent 8fc297c506
commit 406ae7dcb8
1 changed files with 1 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ bool Position::see_ge(Move m, Value threshold) const {
return true;
Bitboard occupied = pieces() ^ from ^ to;
Color stm = color_of(piece_on(from));
Color stm = sideToMove;
Bitboard attackers = attackers_to(to, occupied);
Bitboard stmAttackers, bb;
int res = 1;