gitee.com/quant1x/num@v0.3.2/asm/c2goasm/test/cpp/MultiplyAndAdd.cpp (about) 1 #include <immintrin.h> 2 3 void MultiplyAndAdd(float* arg1, float* arg2, float* arg3, float* result) { 4 __m256 vec1 = _mm256_load_ps(arg1); 5 __m256 vec2 = _mm256_load_ps(arg2); 6 __m256 vec3 = _mm256_load_ps(arg3); 7 __m256 res = _mm256_fmadd_ps(vec1, vec2, vec3); 8 _mm256_storeu_ps(result, res); 9 }