* [FFmpeg-devel] [PATCH] tests/checkasm/lpc: print mismatching values
@ 2022-09-22 21:18 James Almer
0 siblings, 0 replies; only message in thread
From: James Almer @ 2022-09-22 21:18 UTC (permalink / raw)
To: ffmpeg-devel
Will help debugging.
Signed-off-by: James Almer <jamrial@gmail.com>
---
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);
}
--
2.37.3
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-22 21:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 21:18 [FFmpeg-devel] [PATCH] tests/checkasm/lpc: print mismatching values James Almer
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git