Thus, AVX has a function from immintrin.h , which should allow the concatenation of two __m128i values ββto one __m256i value. Function
__m256i _mm256_set_m128i (__m128i hi, __m128i lo)
However, when I use it, like this:
__m256i as[2]; __m128i s[4]; as[0] = _mm256_setr_m128i(s[0], s[1]);
I get a compilation error:
error: incompatible types when assigning to type '__m256i' from type 'int'
I do not understand why this is happening. Any help is much appreciated!
source share