diff options
author | James Almer <jamrial@gmail.com> | 2017-06-23 23:38:07 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-06-23 23:38:07 -0300 |
commit | a579dbb4f7deee142d1bb6545a169c9fcaa467af (patch) | |
tree | 51509560a1fcd39626db69786bb2dd0fc8b6d071 | |
parent | e1120b1c5446acec1ad9567c884fb6655a34c359 (diff) | |
download | ffmpeg-a579dbb4f7deee142d1bb6545a169c9fcaa467af.tar.gz |
checkasm: add missing checks to float_dsp's butterflies_float test
-rw-r--r-- | tests/checkasm/float_dsp.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |