From 01ac384380d7edfde78aecffdd533087ccbe00cb Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 13 Feb 2021 01:05:01 +0100 Subject: [PATCH] Fix Intel/AMD FMA mix_buffers_with_gain() see also 1fc8b5531468d663b8fc4674e390ed3a762bbe9a --- libs/ardour/x86_functions_fma.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/x86_functions_fma.cc b/libs/ardour/x86_functions_fma.cc index 79fe32323d..fb7e8cfad4 100644 --- a/libs/ardour/x86_functions_fma.cc +++ b/libs/ardour/x86_functions_fma.cc @@ -106,7 +106,7 @@ x86_fma_mix_buffers_with_gain( // Load destinations d0 = _mm256_load_ps(dst + 0 ); // dst = dst + (src * gain) - d0 = _mm256_fmadd_ps(g0, d0, s0); + d0 = _mm256_fmadd_ps(g0, s0, d0); // Store result _mm256_store_ps(dst, d0); // Update pointers and counters