[FFmpeg-cvslog] checkasm: add missing checks to float_dsp's butterflies_float test
James Almer
git at videolan.org
Sat Jun 24 05:39:27 EEST 2017
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jun 23 23:38:07 2017 -0300| [a579dbb4f7deee142d1bb6545a169c9fcaa467af] | committer: James Almer
checkasm: add missing checks to float_dsp's butterflies_float test
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a579dbb4f7deee142d1bb6545a169c9fcaa467af
---
tests/checkasm/float_dsp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/checkasm/float_dsp.c b/tests/checkasm/float_dsp.c
index 641cc6fa6a..9b0a221c25 100644
--- a/tests/checkasm/float_dsp.c
+++ b/tests/checkasm/float_dsp.c
@@ -219,9 +219,12 @@ static void test_butterflies_float(const float *src0, const float *src1)
call_ref(cdst, cdst1, LEN);
call_new(odst, odst1, LEN);
for (i = 0; i < LEN; i++) {
- if (!float_near_abs_eps(cdst[i], odst[i], FLT_EPSILON)) {
+ if (!float_near_abs_eps(cdst[i], odst[i], FLT_EPSILON) ||
+ !float_near_abs_eps(cdst1[i], odst1[i], FLT_EPSILON)) {
fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
i, cdst[i], odst[i], cdst[i] - odst[i]);
+ fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
+ i, cdst1[i], odst1[i], cdst1[i] - odst1[i]);
fail();
break;
}
More information about the ffmpeg-cvslog
mailing list