mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 07:09:03 +00:00
Fold functions for nextafter (#1176)
* Add assertion to prove isNextafter is true iff the builtin is nextafter() Signed-off-by: Marco Antognini <marco.antognini@arm.com> * Fold functions for nextafter There is no need to differentiate nextafter() from other binary builtin functions when creating the vtbl entries. Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
@@ -285,9 +285,7 @@ static size_t specialValuesDoubleCount =
|
||||
|
||||
static cl_int TestDouble(cl_uint job_id, cl_uint thread_id, void *p);
|
||||
|
||||
static int TestFunc_Double_Double_Double_common(const Func *f, MTdata d,
|
||||
int isNextafter,
|
||||
bool relaxedMode)
|
||||
int TestFunc_Double_Double_Double(const Func *f, MTdata d, bool relaxedMode)
|
||||
{
|
||||
TestInfo test_info;
|
||||
cl_int error;
|
||||
@@ -329,7 +327,8 @@ static int TestFunc_Double_Double_Double_common(const Func *f, MTdata d,
|
||||
|
||||
test_info.isFDim = 0 == strcmp("fdim", f->nameInCode);
|
||||
test_info.skipNanInf = 0;
|
||||
test_info.isNextafter = isNextafter;
|
||||
test_info.isNextafter = 0 == strcmp("nextafter", f->nameInCode);
|
||||
|
||||
// cl_kernels aren't thread safe, so we make one for each vector size for
|
||||
// every thread
|
||||
for (i = gMinVectorSizeIndex; i < gMaxVectorSizeIndex; i++)
|
||||
@@ -934,14 +933,3 @@ static cl_int TestDouble(cl_uint job_id, cl_uint thread_id, void *data)
|
||||
exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
int TestFunc_Double_Double_Double(const Func *f, MTdata d, bool relaxedMode)
|
||||
{
|
||||
return TestFunc_Double_Double_Double_common(f, d, 0, relaxedMode);
|
||||
}
|
||||
|
||||
int TestFunc_Double_Double_Double_nextafter(const Func *f, MTdata d,
|
||||
bool relaxedMode)
|
||||
{
|
||||
return TestFunc_Double_Double_Double_common(f, d, 1, relaxedMode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user