avfilter/vf_pp7dsp: Add restrict

Makes GCC optimize the scalar codepath away.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt committed 2026-05-15 20:29:29 +02:00
1 parent 94a49068db
commit fc9e63474f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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];
+1 -1
View File
@@ -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)
{