summaryrefslogtreecommitdiff
path: root/tests/checkasm
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-06-23 23:38:07 -0300
committerJames Almer <jamrial@gmail.com>2017-06-23 23:38:07 -0300
commita579dbb4f7deee142d1bb6545a169c9fcaa467af (patch)
tree51509560a1fcd39626db69786bb2dd0fc8b6d071 /tests/checkasm
parente1120b1c5446acec1ad9567c884fb6655a34c359 (diff)
checkasm: add missing checks to float_dsp's butterflies_float test
Diffstat (limited to 'tests/checkasm')
-rw-r--r--tests/checkasm/float_dsp.c5
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;
}