mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 15:37:47 +00:00
Further simplify previous patch
Use a single XOR instead of NEGATE + AND No functional change.
This commit is contained in:
+1
-1
@@ -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