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:
parent
cf0a2a26a9
commit
14aebe2b7c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue