checkasm/sw_range_convert: only run benchmarks on largest input width

This commit is contained in:
Ramiro Polla 2024-09-22 12:59:23 +02:00
parent e308d09fba
commit 2c44393c01
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,7 @@ static void check_lumConvertRange(int from)
call_new(dst1, width); call_new(dst1, width);
if (memcmp(dst0, dst1, width * sizeof(int16_t))) if (memcmp(dst0, dst1, width * sizeof(int16_t)))
fail(); fail();
if (width == LARGEST_INPUT_SIZE)
bench_new(dst1, width); bench_new(dst1, width);
} }
} }
@ -113,6 +114,7 @@ static void check_chrConvertRange(int from)
if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) || if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) ||
memcmp(dstV0, dstV1, width * sizeof(int16_t))) memcmp(dstV0, dstV1, width * sizeof(int16_t)))
fail(); fail();
if (width == LARGEST_INPUT_SIZE)
bench_new(dstU1, dstV1, width); bench_new(dstU1, dstV1, width);
} }
} }