projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cf0a2a2
)
Further simplify previous patch
author
Marco Costalba
<mcostalba@gmail.com>
Thu, 26 Dec 2013 11:08:23 +0000 (12:08 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 26 Dec 2013 11:08:23 +0000 (12:08 +0100)
Use a single XOR instead of NEGATE + AND
No functional change.
src/pawns.cpp
patch
|
blob
|
history
diff --git
a/src/pawns.cpp
b/src/pawns.cpp
index
39bd689
..
5c7a55b
100644
(file)
--- a/
src/pawns.cpp
+++ b/
src/pawns.cpp
@@
-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));
}