This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 29e47b7d9b9b8c0532bb568582f60dff507320a8
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Mon Aug 10 19:21:04 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Aug 11 04:35:09 2026 +0200

    avcodec/x86/dct32: Don't use v{extract,insert}f128 for lower lane
    
    One can just access the lower lane as an ordinary xmm register.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/dct32.asm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/x86/dct32.asm b/libavcodec/x86/dct32.asm
index 37fba51543..763cf5056a 100644
--- a/libavcodec/x86/dct32.asm
+++ b/libavcodec/x86/dct32.asm
@@ -194,15 +194,15 @@ SECTION .text
 ; void ff_dct32_float_avx(FFTSample *out, const FFTSample *in)
 cglobal dct32_float, 2,3,8, out, in, tmp
     ; pass 1
+    vmovaps    xm5, [inq+112]
     vmovaps     m4, [inq+0]
     vinsertf128 m5, m5, [inq+96], 1
-    vinsertf128 m5, m5, [inq+112], 0
     vshufps     m5, m5, m5, 0x1b
     BUTTERFLY   m4, m5, [ps_cos_vec], m6
 
+    vmovaps    xm6, [inq+48]
     vmovaps     m2, [inq+64]
     vinsertf128 m6, m6, [inq+32], 1
-    vinsertf128 m6, m6, [inq+48], 0
     vshufps     m6, m6, m6, 0x1b
     BUTTERFLY   m2, m6, [ps_cos_vec+32], m0
 
@@ -249,10 +249,10 @@ cglobal dct32_float, 2,3,8, out, in, tmp
     vmovaps [outq], m3
 
     vextractf128  [outq+64], m5, 1
-    vextractf128  [outq+32], m5, 0
+    vmovaps       [outq+32], xm5
 
     vextractf128  [outq+80], m4, 1
-    vextractf128  [outq+48], m4, 0
+    vmovaps       [outq+48], xm4
 
     vperm2f128  m0, m1, m1, 0x31
     vmovaps [outq+96], m1

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to