1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 01:05:38 +01:00

AVX512 integer reduce fix (for non-intel compiler)

This commit is contained in:
Lanny91 2017-06-23 11:09:14 +02:00
parent af71c63f4c
commit 56abbdf4c2

View File

@ -558,7 +558,7 @@ namespace Optimization {
v2 = _mm256_hadd_epi32(v1, v1);
u1 = _mm256_castsi256_si128(v2) // upper half
u2 = _mm256_extracti128_si256(v2, 1); // lower half
ret = _mm256_add_epi32(u1, u2);
ret = _mm_add_epi32(u1, u2);
return _mm_cvtsi128_si32(ret);
}
#else