Microptimize MoveList loop
authorMarco Costalba <mcostalba@gmail.com>
Sun, 19 May 2013 20:00:49 +0000 (22:00 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 19 May 2013 20:00:49 +0000 (22:00 +0200)
commitd3608c4e79a29110f4c4a369d7207c6dd8e01f34
tree6190cfd77c49488ea90abe1da10b1dc0f9db1fc9
parent38cfbeeb50c7dde79450f1b44171d5655e555ae5
Microptimize MoveList loop

Add MOVE_NONE at the tail, this allows to loop
across MoveList checking for *it != MOVE_NONE,
and because *it is used imediately after compiler
is able to reuse it.

With this small patch perft speed increased of 3%

And it is also a semplification !

No functional change.
src/book.cpp
src/movegen.h
src/notation.cpp
src/position.cpp
src/search.cpp
src/thread.cpp