]> git.sesse.net Git - stockfish/commit
Clean SIMD code a bit
authorStéphane Nicolet <cassio@free.fr>
Fri, 4 Jun 2021 11:56:40 +0000 (13:56 +0200)
committerStéphane Nicolet <cassio@free.fr>
Fri, 4 Jun 2021 12:07:46 +0000 (14:07 +0200)
commit8f081c86f7f8827ea35fc687e6f6591950cc8f90
tree6ece533012a13c24d4fe2af85882b691d08ab3d7
parent4445965f9714402050119f9e6a76c6a8fc4f8d9a
Clean SIMD code a bit

Cleaner vector code structure in feature transformer. This patch just
regroups the parts of the inner loop for each SIMD instruction set.

Tested for non-regression:
LLR: 2.96 (-2.94,2.94) <-2.50,0.50>
Total: 115760 W: 9835 L: 9831 D: 96094
Ptnml(0-2): 326, 7776, 41715, 7694, 369
https://tests.stockfishchess.org/tests/view/60b96b39457376eb8bcaa26e

It would be nice if a future patch could use some of the macros at
the top of the file to unify the code between the distincts SIMD
instruction sets (of course, unifying the Relu will be the challenge).

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

No functional change
src/nnue/nnue_feature_transformer.h