]> git.sesse.net Git - stockfish/commit
Use packed 32-bit MMX operations for updating the PSQT accumulator
authorFanael Linithien <fanael4@gmail.com>
Tue, 18 May 2021 17:17:59 +0000 (19:17 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 19 May 2021 17:34:44 +0000 (19:34 +0200)
commit038487f95499665bf86ca5343d7a83f970d4b06e
tree19ee221accf03dbb9fdee1dddbea0cad70de0807
parent0faf81d1f6b8ebe1a64482145a634d2e7d15db94
Use packed 32-bit MMX operations for updating the PSQT accumulator

This improves the speed of NNUE by a bit on old hardware that code path
is intended for, like a Pentium III 1.13 GHz:

10 repeats of "./stockfish bench 16 1 13 default depth NNUE":

Before:
54 642 504 897 cycles (± 0.12%)
62 301 937 829 instructions (± 0.03%)

After:
54 320 821 928 cycles (± 0.13%)
62 084 742 699 instructions (± 0.02%)

Speed of go depth 20 from startpos:

Before: 53103 nps
After: 53856 nps

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

No functional change.
src/nnue/nnue_feature_transformer.h