Cleanup and optimize SSE/AVX code

AVX512 +4% faster
AVX2 +1% faster
SSSE3 +5% faster

passed non-regression STC:
STC https://tests.stockfishchess.org/tests/view/5f31249f90816720665374f6
LLR: 2.96 (-2.94,2.94) {-1.50,0.50}
Total: 17576 W: 2344 L: 2245 D: 12987
Ptnml(0-2): 127, 1570, 5292, 1675, 124

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

No functional change
This commit is contained in:
mstembera
2020-08-09 16:23:33 -07:00
committed by Joost VandeVondele
parent cb0504028e
commit f948cd008d
4 changed files with 41 additions and 34 deletions
+4 -2
View File
@@ -52,9 +52,11 @@
#if defined(USE_AVX512)
#if defined(__GNUC__ ) && (__GNUC__ < 9)
#define _mm512_loadA_si512 _mm512_loadu_si512
#define _mm512_loadA_si512 _mm512_loadu_si512
#define _mm512_storeA_si512 _mm512_storeu_si512
#else
#define _mm512_loadA_si512 _mm512_load_si512
#define _mm512_loadA_si512 _mm512_load_si512
#define _mm512_storeA_si512 _mm512_store_si512
#endif
#endif