mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
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:
1 parent
94a49068db
commit
fc9e63474f
2 files changed
+3
-3
No files matched your search
@@ -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];
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user