aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2024-09-22 12:59:23 +0200
committerRamiro Polla <ramiro.polla@gmail.com>2024-10-27 13:20:56 +0100
commit2c44393c011033f18131865d16ce3e01209bc6c2 (patch)
treed336d94c47a8c8235d516a014c683833e5d1d584
parente308d09fba4dcfc585d1105848a024234fcb9b5b (diff)
downloadffmpeg-2c44393c011033f18131865d16ce3e01209bc6c2.tar.gz
checkasm/sw_range_convert: only run benchmarks on largest input width
-rw-r--r--tests/checkasm/sw_range_convert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index 121a459eb6..bce7a7e3e5 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -64,6 +64,7 @@ static void check_lumConvertRange(int from)
call_new(dst1, width);
if (memcmp(dst0, dst1, width * sizeof(int16_t)))
fail();
+ if (width == LARGEST_INPUT_SIZE)
bench_new(dst1, width);
}
}
@@ -113,6 +114,7 @@ static void check_chrConvertRange(int from)
if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) ||
memcmp(dstV0, dstV1, width * sizeof(int16_t)))
fail();
+ if (width == LARGEST_INPUT_SIZE)
bench_new(dstU1, dstV1, width);
}
}