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

Git pushed a commit to branch master
in repository ffmpeg.

commit fc9e63474f1c0bb7f75bfb5def61ac9b131630b1
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sun May 10 20:47:50 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri May 15 20:29:29 2026 +0200

    avfilter/vf_pp7dsp: Add restrict
    
    Makes GCC optimize the scalar codepath away.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavfilter/vf_pp7dsp.h       | 4 ++--
 libavfilter/x86/vf_pp7_init.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_pp7dsp.h b/libavfilter/vf_pp7dsp.h
index e75917bdb4..cb405f4f58 100644
--- a/libavfilter/vf_pp7dsp.h
+++ b/libavfilter/vf_pp7dsp.h
@@ -27,12 +27,12 @@
 #include "config.h"
 
 typedef struct PP7DSPContext {
-    void (*dctB)(int16_t *dst, const int16_t *src);
+    void (*dctB)(int16_t *restrict dst, const int16_t *restrict src);
 } PP7DSPContext;
 
 void ff_pp7dsp_init_x86(PP7DSPContext *pp7dsp);
 
-static void dctB_c(int16_t *dst, const int16_t *src)
+static void dctB_c(int16_t *restrict dst, const int16_t *restrict src)
 {
     for (int i = 0; i < 4; i++) {
         int s0 = src[0 * 4] + src[6 * 4];
diff --git a/libavfilter/x86/vf_pp7_init.c b/libavfilter/x86/vf_pp7_init.c
index 53ac907f27..f294ca7764 100644
--- a/libavfilter/x86/vf_pp7_init.c
+++ b/libavfilter/x86/vf_pp7_init.c
@@ -23,7 +23,7 @@
 #include "libavutil/x86/cpu.h"
 #include "libavfilter/vf_pp7dsp.h"
 
-void ff_pp7_dctB_mmx(int16_t *dst, const int16_t *src);
+void ff_pp7_dctB_mmx(int16_t *restrict dst, const int16_t *restrict src);
 
 av_cold void ff_pp7dsp_init_x86(PP7DSPContext *p)
 {

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

Reply via email to