aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-08 03:14:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-11 14:18:54 +0200
commit37ee36f689e4f9e07c65566e1fec6b8ffa9605b8 (patch)
tree9635a6c11a40b1e0658429d6b235a1e319f60c78
parent5102b98b7a17e90b28360bad08f4f44ab0aebf53 (diff)
downloadffmpeg-37ee36f689e4f9e07c65566e1fec6b8ffa9605b8.tar.gz
checkasm/idctdsp: Use declare_func_emms only when needed
There is no MMX code for (add|put|put_signed)_pixels_clamped since commit bfb28b5ce89f3e950214b67ea95b45e3355c2caf, so use declare_func instead of declare_func_emms() to also test that we are not in MMX mode after return. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--tests/checkasm/idctdsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/idctdsp.c b/tests/checkasm/idctdsp.c
index 02724536a7..c06e607d99 100644
--- a/tests/checkasm/idctdsp.c
+++ b/tests/checkasm/idctdsp.c
@@ -79,7 +79,7 @@ static void check_add_put_clamped(void)
for (size_t t = 0; t < FF_ARRAY_ELEMS(tests); ++t) {
void (*func)(const int16_t *, uint8_t * ptrdiff_t) = *(void **)((intptr_t) &h + tests[t].offset);
if (check_func(func, "idctdsp.%s", tests[t].name)) {
- declare_func_emms(AV_CPU_FLAG_MMX, void, const int16_t *, uint8_t *, ptrdiff_t);
+ declare_func(void, const int16_t *, uint8_t *, ptrdiff_t);
RANDOMIZE_BUFFER16(src, 64);
RANDOMIZE_BUFFER8(dst, 10 * 24);
call_ref(src0, dst0 + 24 + 8, 24);