[FFmpeg-cvslog] x86/mdct15: use three operand form for some instructions

James Almer git at videolan.org
Sat Jun 24 07:47:01 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Jun 24 01:44:49 2017 -0300| [349446e36f17261c84bbad45ab81d35f4a833a2b] | committer: James Almer

x86/mdct15: use three operand form for some instructions

Fixes compilation with old yasm

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=349446e36f17261c84bbad45ab81d35f4a833a2b
---

 libavcodec/x86/mdct15.asm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavcodec/x86/mdct15.asm b/libavcodec/x86/mdct15.asm
index 8d01675956..f8b895944d 100644
--- a/libavcodec/x86/mdct15.asm
+++ b/libavcodec/x86/mdct15.asm
@@ -66,7 +66,7 @@ SECTION .text
 
     shufps      xm3,  xm3, q1032
     vinsertf128 m%3,  m%3, xm3, 1       ; All ACs (tmp[1] through to tmp[4])
-    addps       m%3,  m0                ; Finally offset with DCs
+    addps       m%3,  m%3,  m0          ; Finally offset with DCs
 %endmacro
 
 %macro BUTTERFLIES_DC 2 ; %1 - exptab_offset, %2 - out
@@ -88,12 +88,12 @@ SECTION .text
     mulps  m2, m13, [exptabq + 64*1 + 0*mmsize + %1]
     mulps  m3, m13, [exptabq + 64*1 + 1*mmsize + %1]
 
-    addps  m0, m2
-    addps  m1, m3
-    addps  m0, m11
+    addps  m0, m0, m2
+    addps  m1, m1, m3
+    addps  m0, m0, m11
 
-    shufps m1, m1, q2301
-    addps  m0, m1
+    shufps m1, m1, m1, q2301
+    addps  m0, m0, m1
 
     vextractf128 xm1, m0, 1
 



More information about the ffmpeg-cvslog mailing list