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

Git pushed a commit to branch master
in repository ffmpeg.

commit 698f0d22bf983f9b804da31b46b796d5a35c332f
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Aug 4 18:06:45 2026 +0200
Commit:     James Almer <[email protected]>
CommitDate: Thu Aug 6 19:59:16 2026 +0000

    avfilter/x86/vf_atadenoise: Avoid negating mask
    
    Possible by using pandn.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavfilter/x86/vf_atadenoise.asm | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/libavfilter/x86/vf_atadenoise.asm 
b/libavfilter/x86/vf_atadenoise.asm
index bb495c5819..9726084f31 100644
--- a/libavfilter/x86/vf_atadenoise.asm
+++ b/libavfilter/x86/vf_atadenoise.asm
@@ -81,11 +81,10 @@ cglobal atadenoise_filter_row8, 6,10,13, src, dst, srcf, w, 
mid, size, i, j, src
             mova             m6, m11
             pcmpgtw          m6, m5
             por              m6, m1
-            pxor             m6, m10
-            pand            m12, m6
-            pand             m9, m12
+            pandn            m6, m12
+            mova            m12, m6
+            pand             m9, m6
             paddw            m7, m9
-            mova             m6, m12
             psrlw            m6, 15
             paddw            m8, m6
 
@@ -102,11 +101,10 @@ cglobal atadenoise_filter_row8, 6,10,13, src, dst, srcf, 
w, mid, size, i, j, src
             mova             m6, m3
             pcmpgtw          m6, m5
             por              m6, m1
-            pxor             m6, m10
-            pand            m12, m6
-            pand             m9, m12
+            pandn            m6, m12
+            mova            m12, m6
+            pand             m9, m6
             paddw            m7, m9
-            mova             m6, m12
             psrlw            m6, 15
             paddw            m8, m6
 
@@ -188,11 +186,10 @@ cglobal atadenoise_filter_row8_serial, 6,10,12, src, dst, 
srcf, w, mid, size, i,
             pcmpgtw          m1, m4
             pcmpgtw          m6, m3, m5
             por              m6, m1
-            pxor             m6, m10
-            pand            m11, m6
-            pand             m9, m11
+            pandn            m6, m11
+            mova            m11, m6
+            pand             m9, m6
             paddw            m7, m9
-            mova             m6, m11
             psrlw            m6, 15
             paddw            m8, m6
 
@@ -222,11 +219,10 @@ cglobal atadenoise_filter_row8_serial, 6,10,12, src, dst, 
srcf, w, mid, size, i,
             mova             m6, m3
             pcmpgtw          m6, m5
             por              m6, m1
-            pxor             m6, m10
-            pand            m11, m6
-            pand             m9, m11
+            pandn            m6, m11
+            mova            m11, m6
+            pand             m9, m6
             paddw            m7, m9
-            mova             m6, m11
             psrlw            m6, 15
             paddw            m8, m6
 

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

Reply via email to