projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
55604f1
)
Speed up by almost 3%
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 26 Apr 2014 22:25:18 +0000 (
00:25
+0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 26 Apr 2014 22:25:47 +0000 (
00:25
+0200)
This apparentely silly tweak allows
to speed up the bench by almost 3%.
Not clear why, repeating with perft,
the speed up vanishes.
Suggested by Jonathan Calovski.
No functional change.
src/position.cpp
patch
|
blob
|
history
diff --git
a/src/position.cpp
b/src/position.cpp
index
7b345fd
..
6b05c24
100644
(file)
--- a/
src/position.cpp
+++ b/
src/position.cpp
@@
-821,7
+821,7
@@
void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI
k ^= Zobrist::enpassant[file_of(st->epSquare)];
}
- if (type_of(m) == PROMOTION)
+ else if (type_of(m) == PROMOTION)
{
PieceType promotion = promotion_type(m);