mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
AVX2 fix
This commit is contained in:
parent
0440d4ce66
commit
af71c63f4c
@ -711,7 +711,7 @@ namespace Optimization {
|
|||||||
v2 = _mm256_hadd_epi32(v1, v1);
|
v2 = _mm256_hadd_epi32(v1, v1);
|
||||||
u1 = _mm256_castsi256_si128(v2); // upper half
|
u1 = _mm256_castsi256_si128(v2); // upper half
|
||||||
u2 = _mm256_extracti128_si256(v2, 1); // lower half
|
u2 = _mm256_extracti128_si256(v2, 1); // lower half
|
||||||
ret = _mm256_add_epi32(u1, u2);
|
ret = _mm_add_epi32(u1, u2);
|
||||||
#else
|
#else
|
||||||
// No AVX horizontal add; extract upper and lower halves of register & use
|
// No AVX horizontal add; extract upper and lower halves of register & use
|
||||||
// SSE intrinsics.
|
// SSE intrinsics.
|
||||||
|
Loading…
Reference in New Issue
Block a user