[FFmpeg-devel] [PATCH 13/14] [inline assembly] add memory to lpc

frederic.recoules at univ-grenoble-alpes.fr frederic.recoules at univ-grenoble-alpes.fr
Sun Apr 26 22:44:23 EEST 2020


From: Frédéric Recoules <frederic.recoules at orange.fr>

---
 libavcodec/x86/lpc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/x86/lpc.c b/libavcodec/x86/lpc.c
index 6789027277..0b32bd1bf1 100644
--- a/libavcodec/x86/lpc.c
+++ b/libavcodec/x86/lpc.c
@@ -73,7 +73,7 @@ static void lpc_apply_welch_window_sse2(const int32_t *data, int len,
         :"+&r"(i), "+&r"(j)
         :"r"(w_data+n2), "r"(data+n2), "m"(c), "r"(len)
          NAMED_CONSTRAINTS_ARRAY_ADD(pd_1,pd_2)
-         XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm2", "%xmm3",
+        :"memory" XMM_CLOBBERS(, "%xmm0", "%xmm1", "%xmm2", "%xmm3",
                                     "%xmm5", "%xmm6", "%xmm7")
     );
 #undef WELCH
@@ -143,7 +143,7 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
                 :"+&r"(i), "=m"(autoc[j]), "=m"(autoc[j+1])
                 :"r"(data+len), "r"(data+len-j)
                  NAMED_CONSTRAINTS_ARRAY_ADD(pd_1)
-		 XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm3", "%xmm4")
+		:"memory" XMM_CLOBBERS(, "%xmm0", "%xmm1", "%xmm3", "%xmm4")
             );
         }
     }
-- 
2.17.1



More information about the ffmpeg-devel mailing list