Skip to content

Commit

Permalink
Update macro_unary_double.cpp.
Browse files Browse the repository at this point in the history
  • Loading branch information
haonanya1 committed Jul 1, 2024
1 parent e748c83 commit f85ea27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test_conformance/math_brute_force/macro_unary_double.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)
if (q[j] > t[j]) err = q[j] - t[j];
vlog_error("\nERROR: %sD: %" PRId64
" ulp error at %.13la: *%" PRId64 " vs. %" PRId64 "\n",
name, err, ((double *)gIn)[j], t[j], q[j]);
name, err, s[j], t[j], q[j]);
return -1;
}

Expand All @@ -265,10 +265,10 @@ cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)

cl_ulong err = -t[j] - q[j];
if (q[j] > -t[j]) err = q[j] + t[j];
vlog_error(
"\nERROR: %sD%s: %" PRId64 " ulp error at %.13la: *%" PRId64
" vs. %" PRId64 "\n",
name, sizeNames[k], err, ((double *)gIn)[j], -t[j], q[j]);
vlog_error("\nERROR: %sD%s: %" PRId64
" ulp error at %.13la: *%" PRId64 " vs. %" PRId64
"\n",
name, sizeNames[k], err, s[j], -t[j], q[j]);
return -1;
}
}
Expand Down

0 comments on commit f85ea27

Please sign in to comment.