[FFmpeg-cvslog] checkasm/vvc_mc: Don't use declare_func_emms

Andreas Rheinhardt git at videolan.org
Sat Mar 2 05:06:55 EET 2024


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Wed Feb 28 15:34:58 2024 +0100| [cfe21a66e20fa29543bd2e283bfe985066cd739d] | committer: Andreas Rheinhardt

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 at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cfe21a66e20fa29543bd2e283bfe985066cd739d
---

 tests/checkasm/vvc_mc.c | 12 ++++++------
 1 file 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);
                     {



More information about the ffmpeg-cvslog mailing list