mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-20 06:29:02 +00:00
Change relaxed exp exp2 embedded error to 4 + floor(fabs(2x)) (#2326)
Reflects the changes to the specification: https://github.com/KhronosGroup/OpenCL-Docs/pull/1318 Relaxed embedded exp and exp2 ulps will be 4 + floor(fabs(2 * x)). Reciprocal and divide are unchanged because the code already handles the embedded profile case, see unary_float.c and binary_operator_float.c. --------- Co-authored-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
@@ -300,13 +300,7 @@ cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)
|
||||
|
||||
if (strcmp(fname, "exp") == 0 || strcmp(fname, "exp2") == 0)
|
||||
{
|
||||
// For full profile, ULP depends on input value.
|
||||
// For embedded profile, ULP comes from functionList.
|
||||
if (!gIsEmbedded)
|
||||
{
|
||||
ulps = 3.0f + floor(fabs(2 * s[j]));
|
||||
}
|
||||
|
||||
ulps += floor(fabs(2 * s[j]));
|
||||
fail = !(fabsf(err) <= ulps);
|
||||
}
|
||||
if (strcmp(fname, "tan") == 0)
|
||||
|
||||
Reference in New Issue
Block a user