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

Git pushed a commit to branch master
in repository ffmpeg.

commit d6ed5d6e3d1def6d918160f4a236030a4e7ac30e
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sun Feb 22 18:01:39 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Mar 6 20:02:41 2026 +0100

    avcodec/x86/vvc/of: Deduplicate writing, save jump
    
    Both the 8bpp width 16 and >8bpp width 8 cases write
    16 contiguous bytes; deduplicate writing them. In fact,
    by putting this block of code at the end of the SAVE macro,
    one can even save a jmp for the width 16 8bpp case
    (without adversely affecting the other cases).
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/vvc/of.asm | 32 ++++++++++++--------------------
 1 file changed, 12 insertions(+), 20 deletions(-)

diff --git a/libavcodec/x86/vvc/of.asm b/libavcodec/x86/vvc/of.asm
index 180309ef63..895535c754 100644
--- a/libavcodec/x86/vvc/of.asm
+++ b/libavcodec/x86/vvc/of.asm
@@ -72,35 +72,27 @@ INIT_YMM avx2
     CLIPW                         %1, m9, m10
 %endmacro
 
-%macro SAVE_8BPC 3 ; dst, src, jmp dst
+%macro SAVE 2 ; dst, src
+    cmp                 pixel_maxd, (1 << 8) - 1
+    jne               %%save_16bpc
+
     packuswb                   m%2, m%2
     vpermq                     m%2, m%2, q0020
 
     cmp                         wd, 16
-    je                       %%w16
+    je                       %%w16_8
     movq                        %1, xm%2
-    jmp                         %3
-%%w16:
-    movu                        %1, xm%2
-    jmp                         %3
-%endmacro
+    jmp                      %%end
 
-%macro SAVE_16BPC 2 ; dst, src
+%%save_16bpc:
     cmp                         wd, 16
-    je                       %%w16
-    movu                        %1, xm%2
-    jmp                     %%wend
-%%w16:
+    jne                       %%w8_16
     movu                        %1, m%2
-%%wend:
-%endmacro
+    jmp                      %%end
 
-%macro SAVE 2 ; dst, src
-    cmp                 pixel_maxd, (1 << 8) - 1
-    jne               %%save_16bpc
-    SAVE_8BPC                   %1, %2, %%end
-%%save_16bpc:
-    SAVE_16BPC                   %1, %2
+%%w16_8:
+%%w8_16:
+    movu                        %1, xm%2
 %%end:
 %endmacro
 

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

Reply via email to