]> git.sesse.net Git - stockfish/commit
Speedup KPK bitbase of 25%
authorMarco Costalba <mcostalba@gmail.com>
Wed, 13 Feb 2013 11:26:08 +0000 (12:26 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 13 Feb 2013 19:13:56 +0000 (20:13 +0100)
commit10d29add187fbc7ce20535a2beddc76e4a8ad0c2
tree0c484df2e2b908b8dd49250c8a4548f5c0cbf748
parentf2950ae2064fed7767b738ba569e33ae7eaad0a7
Speedup KPK bitbase of 25%

Change the way the index is coded so that
now looping from 0 to IndexMax generates
the pawns from RANK_7 down to RANK2.

Becuase positions with pawns at RANK_7
are easily classified as wins/draws, this
small trick allows to reduce the number
of needed iterations from 30 down to 26!

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/bitbase.cpp