mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 02:27:00 +08:00
Further simplify previous patch
Use a single XOR instead of NEGATE + AND No functional change.
This commit is contained in:
@@ -188,7 +188,7 @@ namespace {
|
|||||||
// to file distance between left and right outermost pawns.
|
// to file distance between left and right outermost pawns.
|
||||||
if (pos.count<PAWN>(Us) > 1)
|
if (pos.count<PAWN>(Us) > 1)
|
||||||
{
|
{
|
||||||
b = ~e->semiopenFiles[Us] & 0xFF;
|
b = e->semiopenFiles[Us] ^ 0xFF;
|
||||||
value += PawnsFileSpan * int(msb(b) - lsb(b));
|
value += PawnsFileSpan * int(msb(b) - lsb(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user