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

Git pushed a commit to branch master
in repository ffmpeg.

commit 9314d5cae8a9abf98ae82e764f3d0e5d3588b5c0
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Thu Dec 18 23:15:12 2025 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Dec 19 20:55:53 2025 +0100

    avcodec/x86/lossless_videodsp: Avoid aligned/unaligned versions
    
    For AVX2, movdqu is as fast as movdqa when used on aligned addresses,
    so don't instantiate aligned/unaligned versions.
    
    (The check was btw overtly strict: The AVX2 code only uses 16 byte
    stores, so it would be enough for dst to be 16-byte aligned.)
    
    Reviewed-by: Lynne <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/x86/lossless_videodsp.asm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/x86/lossless_videodsp.asm 
b/libavcodec/x86/lossless_videodsp.asm
index 7dd10228fc..462155656a 100644
--- a/libavcodec/x86/lossless_videodsp.asm
+++ b/libavcodec/x86/lossless_videodsp.asm
@@ -151,6 +151,7 @@ cglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left
     VBROADCASTI128    m3, [pb_zz11zz55zz99zzdd]
     movd    xm0, leftm
     pslldq  xm0, 15
+%if notcpuflag(avx2)
     test    srcq, mmsize - 1
     jnz .src_unaligned
     test    dstq, mmsize - 1
@@ -159,6 +160,7 @@ cglobal add_left_pred_unaligned, 3,3,7, dst, src, w, left
 .dst_unaligned:
     ADD_LEFT_LOOP u, a
 .src_unaligned:
+%endif
     ADD_LEFT_LOOP u, u
 %endmacro
 

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

Reply via email to