]> git.sesse.net Git - stockfish/commit
Reduce Position::pieces() overloads
authormstembera <MissingEmail@email>
Wed, 5 Apr 2023 02:44:09 +0000 (19:44 -0700)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 10 Apr 2023 08:51:45 +0000 (10:51 +0200)
commit7a9f67747f23e837a8691ba9e6e4f0d1fdafff73
tree8e6a4d5ae0dbe992773308f8382bd45840337ad0
parent2f2f45f9f47c1212f3229c22304456c9bad8f843
Reduce Position::pieces() overloads

Reduce the number of overloads for pieces() by using a more general template implementation.
Secondly simplify some code in search.cpp using the new general functionality.

TC https://tests.stockfishchess.org/tests/view/642ce27877ff3301150dc193
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 269640 W: 71775 L: 71809 D: 126056
Ptnml(0-2): 687, 27294, 78885, 27274, 680

closes https://github.com/official-stockfish/Stockfish/pull/4501

No functional change.
src/position.h
src/search.cpp