diff options
author | Nikolay Bogoychev <nheart@gmail.com> | 2020-03-26 13:20:11 +0300 |
---|---|---|
committer | Nikolay Bogoychev <nheart@gmail.com> | 2020-03-26 13:20:11 +0300 |
commit | ac7ee0ed41d0c321ef48909d4fdfd53e2461495e (patch) | |
tree | 4e2c0ce3297d93ccef3b9c7333f60c9bc3af9c2b | |
parent | 6917f9d8f31c39e10d8c877c8307b1aee548ba0f (diff) | |
parent | 97c6ebba1f176d4b779fea454c9be1f17fcfadcc (diff) |
Merge remote-tracking branch 'origin/master' into warning_fail
-rw-r--r-- | multiply.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -81,7 +81,9 @@ static inline INTGEMM_AVX512F float MaxFloat32(__m512 a) { } static inline INTGEMM_AVX512F float horizontalSum(__m512 a) { - return _mm512_reduce_add_ps(a); + __m256 low = _mm512_castps512_ps256(a); + __m256 high = _mm256_castpd_ps(_mm512_extractf64x4_pd(_mm512_castps_pd(a),1)); + return horizontalSum(low) + horizontalSum(high); } #endif |