]> git.sesse.net Git - stockfish/commit
Use a std::bitset for KPKBitbase
authorprotonspring <mike@whiteley.org>
Thu, 23 Jan 2020 17:18:58 +0000 (18:18 +0100)
committerStéphane Nicolet <cassio@free.fr>
Thu, 23 Jan 2020 17:20:11 +0000 (18:20 +0100)
commit6f1013794cecc179e7432004b8555e64ddca75a5
tree44b7b2ebcd80e348e58c253c33d23b2d7fed8c7c
parentf3c83ed46cdc2062c30551f457ac53ad635794ea
Use a std::bitset for KPKBitbase

This is a non-functional simplification. Looks like std::bitset works good
for the KPKBitbase. Thanks for Jorg Oster for helping get the speed up
(the [] accessor is faster than test()).

Speed testing: 10k calls to probe:
  master 9.8 sec
  patch 9.8 sec.

STC
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 100154 W: 19025 L: 18992 D: 62137
Ptnml(0-2): 1397, 11376, 24572, 11254, 1473
http://tests.stockfishchess.org/tests/view/5e21e601346e35ac603b7d2b

Closes https://github.com/official-stockfish/Stockfish/pull/2502

No functional change
src/bitbase.cpp