mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Avoid explicit bitwise operators
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
7f4c7cd785
commit
e7505324f6
@@ -677,8 +677,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
|||||||
Score score = SCORE_ZERO;
|
Score score = SCORE_ZERO;
|
||||||
|
|
||||||
// Undefended minors get penalized even if not under attack
|
// Undefended minors get penalized even if not under attack
|
||||||
undefendedMinors = pos.pieces(Them)
|
undefendedMinors = pos.pieces(Them, BISHOP, KNIGHT)
|
||||||
& (pos.pieces(BISHOP) | pos.pieces(KNIGHT))
|
|
||||||
& ~ei.attackedBy[Them][ALL_PIECES];
|
& ~ei.attackedBy[Them][ALL_PIECES];
|
||||||
|
|
||||||
if (undefendedMinors)
|
if (undefendedMinors)
|
||||||
|
|||||||
Reference in New Issue
Block a user