projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7f4c7cd
)
Avoid explicit bitwise operators
author
Reuven Peleg
<reuvenpe2005@gmail.com>
Sun, 5 May 2013 19:39:06 +0000 (22:39 +0300)
committer
Marco Costalba
<mcostalba@gmail.com>
Sun, 5 May 2013 20:51:18 +0000 (22:51 +0200)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
fe4eef5
..
854ab42
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-677,8
+677,7
@@
Value do_evaluate(const Position& pos, Value& margin) {
Score score = SCORE_ZERO;
// Undefended minors get penalized even if not under attack
- undefendedMinors = pos.pieces(Them)
- & (pos.pieces(BISHOP) | pos.pieces(KNIGHT))
+ undefendedMinors = pos.pieces(Them, BISHOP, KNIGHT)
& ~ei.attackedBy[Them][ALL_PIECES];
if (undefendedMinors)