diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-28 15:34:58 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-02 02:54:12 +0100 |
commit | cfe21a66e20fa29543bd2e283bfe985066cd739d (patch) | |
tree | 4ff87365e704db5b965552ce2e415e31689687d7 | |
parent | 540d8e77404a39a22f8746ba0209ab2136aff71c (diff) | |
download | ffmpeg-cfe21a66e20fa29543bd2e283bfe985066cd739d.tar.gz |
checkasm/vvc_mc: Don't use declare_func_emms
There is no MMX DSP code for VVC, so one can use the stricter
declare_func which also tests that we are not in MMX mode
at the end of this function.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | tests/checkasm/vvc_mc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c index 8adb00573f..ce34965b7d 100644 --- a/tests/checkasm/vvc_mc.c +++ b/tests/checkasm/vvc_mc.c @@ -74,7 +74,7 @@ static void check_put_vvc_luma(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, + declare_func(void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, const int height, const int8_t *hf, const int8_t *vf, const int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -122,7 +122,7 @@ static void check_put_vvc_luma_uni(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dststride, + declare_func(void, uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -172,7 +172,7 @@ static void check_put_vvc_chroma(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, + declare_func(void, int16_t *dst, const uint8_t *src, const ptrdiff_t src_stride, const int height, const int8_t *hf, const int8_t *vf, const int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -220,7 +220,7 @@ static void check_put_vvc_chroma_uni(void) LOCAL_ALIGNED_32(uint8_t, src1, [SRC_BUF_SIZE]); VVCDSPContext c; - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dststride, + declare_func(void, uint8_t *dst, ptrdiff_t dststride, uint8_t *src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int width); for (int bit_depth = 8; bit_depth <= 12; bit_depth += 2) { @@ -282,7 +282,7 @@ static void check_avg(void) for (int h = 2; h <= MAX_CTU_SIZE; h *= 2) { for (int w = 2; w <= MAX_CTU_SIZE; w *= 2) { { - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dst_stride, + declare_func(void, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0, const int16_t *src1, int width, int height); if (check_func(c.inter.avg, "avg_%d_%dx%d", bit_depth, w, h)) { memset(dst0, 0, AVG_DST_BUF_SIZE); @@ -296,7 +296,7 @@ static void check_avg(void) } } { - declare_func_emms(AV_CPU_FLAG_MMX | AV_CPU_FLAG_MMXEXT, void, uint8_t *dst, ptrdiff_t dst_stride, + declare_func(void, uint8_t *dst, ptrdiff_t dst_stride, const int16_t *src0, const int16_t *src1, int width, int height, int denom, int w0, int w1, int o0, int o1); { |