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

Git pushed a commit to branch master
in repository ffmpeg.

commit f2035a4605734b15847ebf6ffb0d6bd0b1507de3
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Mon Jul 27 00:41:39 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Sat Aug 1 16:50:06 2026 +0200

    avcodec/x86/vc1dsp_loopfilter: Reorder instructions slightly
    
    In particular, apply the rounding before adding the result
    of the multiplication. No change in performance here.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/vc1dsp_loopfilter.asm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/x86/vc1dsp_loopfilter.asm 
b/libavcodec/x86/vc1dsp_loopfilter.asm
index 0db1ebc8e3..fa42864ae1 100644
--- a/libavcodec/x86/vc1dsp_loopfilter.asm
+++ b/libavcodec/x86/vc1dsp_loopfilter.asm
@@ -60,12 +60,12 @@ SECTION .text
 ; in:  p1 p0 q0 q1, clobbers p0
 ; out: p1 = (2*(p1 - q1) - 5*(p0 - q0) + 4) >> 3
 %macro VC1_LOOP_FILTER_A0 4
-    psubw  %1, %4
     psubw  %2, %3
-    paddw  %1, %1
+    psubw  %1, %4
     pmullw %2, [pw_5]
-    psubw  %1, %2
+    paddw  %1, %1
     paddw  %1, [pw_4]
+    psubw  %1, %2
     psraw  %1, 3
 %endmacro
 

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

Reply via email to