mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 22:19:02 +00:00
Make functions local to translation unit (#1125)
Remove unnecessary declarations. Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
@@ -27,13 +27,6 @@ extern const vtbl _binary_operator = { "binaryOperator",
|
||||
TestFunc_Float_Float_Float_Operator,
|
||||
TestFunc_Double_Double_Double_Operator };
|
||||
|
||||
static int BuildKernel(const char *name, const char *operator_symbol,
|
||||
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
||||
cl_program *p, bool relaxedMode);
|
||||
static int BuildKernelDouble(const char *name, const char *operator_symbol,
|
||||
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
||||
cl_program *p, bool relaxedMode);
|
||||
|
||||
static int BuildKernel(const char *name, const char *operator_symbol,
|
||||
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
||||
cl_program *p, bool relaxedMode)
|
||||
@@ -223,8 +216,6 @@ typedef struct BuildKernelInfo
|
||||
bool relaxedMode; // Whether to build with -cl-fast-relaxed-math.
|
||||
} BuildKernelInfo;
|
||||
|
||||
static cl_int BuildKernel_FloatFn(cl_uint job_id, cl_uint thread_id UNUSED,
|
||||
void *p);
|
||||
static cl_int BuildKernel_FloatFn(cl_uint job_id, cl_uint thread_id UNUSED,
|
||||
void *p)
|
||||
{
|
||||
@@ -234,8 +225,6 @@ static cl_int BuildKernel_FloatFn(cl_uint job_id, cl_uint thread_id UNUSED,
|
||||
info->kernels[i], info->programs + i, info->relaxedMode);
|
||||
}
|
||||
|
||||
static cl_int BuildKernel_DoubleFn(cl_uint job_id, cl_uint thread_id UNUSED,
|
||||
void *p);
|
||||
static cl_int BuildKernel_DoubleFn(cl_uint job_id, cl_uint thread_id UNUSED,
|
||||
void *p)
|
||||
{
|
||||
@@ -283,8 +272,6 @@ typedef struct TestInfo
|
||||
// no special fields
|
||||
} TestInfo;
|
||||
|
||||
static cl_int TestFloat(cl_uint job_id, cl_uint thread_id, void *p);
|
||||
|
||||
// A table of more difficult cases to get right
|
||||
static const float specialValuesFloat[] = {
|
||||
-NAN,
|
||||
|
||||
Reference in New Issue
Block a user