Код: Выделить всё
#include
#include
#include
#include
__m256i foo();
__m256i foo2();
int main() {
__m256i vec1 = foo();
__m256i vec2 = foo2();
__m256i result = _mm256_add_epi32(vec1, vec2);
/* Display the elements of the result vector */
int32_t* res = (int32_t*)&vec1;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79152507/how-to-understand-this-avx-addition-of-two-m256i-variables[/url]