mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 09:35:22 +00:00
tests/checkasm/lpc: print mismatching values
Will help debugging. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
0922c6b01b
commit
9cbfffa0d4
@ -45,8 +45,14 @@ static void test_window(int len)
|
|||||||
call_ref(src, len, dst0);
|
call_ref(src, len, dst0);
|
||||||
call_new(src, len, dst1);
|
call_new(src, len, dst1);
|
||||||
|
|
||||||
if (!double_near_abs_eps_array(dst0, dst1, EPS, len))
|
for (int i = 0; i < len; i++) {
|
||||||
|
if (!double_near_abs_eps(dst0[i], dst1[i], EPS)) {
|
||||||
|
fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
|
||||||
|
i, dst0[i], dst1[i], dst0[i] - dst1[i]);
|
||||||
fail();
|
fail();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bench_new(src, len, dst1);
|
bench_new(src, len, dst1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user