1
0
Fork 0

Further simplify previous patch

Use a single XOR instead of NEGATE + AND

No functional change.
pull/358/head
Marco Costalba 2013-12-26 12:08:23 +01:00
parent cf0a2a26a9
commit 14aebe2b7c
1 changed files with 1 additions and 1 deletions

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));
}