1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

checkasm/vp8dsp: Use declare_func_emms only when needed

There is no MMX code for loop filters since commit
6a551f1405, so use declare_func
instead of declare_func_emms() to also test that we are not
in MMX mode after return.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-10-08 02:39:48 +02:00
parent e89b85a5e4
commit bcfa427c8f

View File

@ -384,7 +384,7 @@ static void check_loopfilter_16y(void)
VP8DSPContext d;
int dir, edge, force_hev;
int flim_E = 20, flim_I = 10, hev_thresh = 7;
declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *, ptrdiff_t, int, int, int);
declare_func(void, uint8_t *, ptrdiff_t, int, int, int);
ff_vp8dsp_init(&d);
@ -430,7 +430,7 @@ static void check_loopfilter_8uv(void)
VP8DSPContext d;
int dir, edge, force_hev;
int flim_E = 20, flim_I = 10, hev_thresh = 7;
declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *, uint8_t *, ptrdiff_t, int, int, int);
declare_func(void, uint8_t *, uint8_t *, ptrdiff_t, int, int, int);
ff_vp8dsp_init(&d);
@ -481,7 +481,7 @@ static void check_loopfilter_simple(void)
VP8DSPContext d;
int dir;
int flim_E = 20, flim_I = 30, hev_thresh = 0;
declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *, ptrdiff_t, int);
declare_func(void, uint8_t *, ptrdiff_t, int);
ff_vp8dsp_init(&d);