Skip to content

Commit

Permalink
tests/checkasm/float_dsp: Increase allowed difference for float_dsp.v…
Browse files Browse the repository at this point in the history
…ector_dmul

Tested for 10000 iterations on x86-32

Fixes: Ticket6848

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Nov 27, 2017
1 parent 1eee394 commit 38f966b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/checkasm/float_dsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ static void test_vector_dmul_scalar(const double *src0, const double *src1)
call_ref(cdst, src0, src1[0], LEN);
call_new(odst, src0, src1[0], LEN);
for (i = 0; i < LEN; i++) {
if (!double_near_abs_eps(cdst[i], odst[i], DBL_EPSILON)) {
double t = fabs(src1[0]) + fabs(src0[i]) + fabs(src1[0] * src0[i]) + 1.0;
if (!double_near_abs_eps(cdst[i], odst[i], t * 2 * DBL_EPSILON)) {
fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n", i,
cdst[i], odst[i], cdst[i] - odst[i]);
fail();
Expand Down

0 comments on commit 38f966b

Please sign in to comment.