[FFmpeg-cvslog] tests/checkasm/lpc: print mismatching values
James Almer
git at videolan.org
Fri Sep 23 02:23:23 EEST 2022
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Sep 22 18:15:12 2022 -0300| [9cbfffa0d4c5dabd05e5bbf9923cfaefa16ceb11] | committer: James Almer
tests/checkasm/lpc: print mismatching values
Will help debugging.
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cbfffa0d4c5dabd05e5bbf9923cfaefa16ceb11
---
tests/checkasm/lpc.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/checkasm/lpc.c b/tests/checkasm/lpc.c
index 8528fd6e20..49e608f8c1 100644
--- a/tests/checkasm/lpc.c
+++ b/tests/checkasm/lpc.c
@@ -45,8 +45,14 @@ static void test_window(int len)
call_ref(src, len, dst0);
call_new(src, len, dst1);
- if (!double_near_abs_eps_array(dst0, dst1, EPS, len))
- fail();
+ 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();
+ break;
+ }
+ }
bench_new(src, len, dst1);
}
More information about the ffmpeg-cvslog
mailing list