tests/checkasm/llviddsp: Use the same width for each cpuflag
Otherwise the benchmark numbers would be incomparable nonsense. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
df4587789f
commit
a8a16c15c8
1 changed files with 5 additions and 1 deletions
|
|
@ -195,9 +195,13 @@ static void check_add_gradient_pred(LLVidDSPContext *c, int w) {
|
|||
void checkasm_check_llviddsp(void)
|
||||
{
|
||||
LLVidDSPContext c;
|
||||
int width = 16 * av_clip(rnd(), 16, 128);
|
||||
static int saved_width = 0;
|
||||
int width = saved_width;
|
||||
int accRnd = rnd() & 0xFF;
|
||||
|
||||
if (!width)
|
||||
saved_width = width = 16 * av_clip(rnd(), 16, 128);
|
||||
|
||||
ff_llviddsp_init(&c);
|
||||
|
||||
check_add_bytes(&c, width);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue