1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Further simplify previous patch

Use a single XOR instead of NEGATE + AND

No functional change.
This commit is contained in:
Marco Costalba 2013-12-26 12:08:23 +01:00
parent cf0a2a26a9
commit 14aebe2b7c

View file

@ -188,7 +188,7 @@ namespace {
// to file distance between left and right outermost pawns.
if (pos.count<PAWN>(Us) > 1)
{
b = ~e->semiopenFiles[Us] & 0xFF;
b = e->semiopenFiles[Us] ^ 0xFF;
value += PawnsFileSpan * int(msb(b) - lsb(b));
}