mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Remove dead variables and functions (#1238)
These were identified using Clang's -Wunused warning flag. Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
@@ -279,7 +279,6 @@ int TestFunc_Float_Float_Float(const Func *f, MTdata d, bool relaxedMode)
|
|||||||
float maxError = 0.0f;
|
float maxError = 0.0f;
|
||||||
double maxErrorVal = 0.0;
|
double maxErrorVal = 0.0;
|
||||||
double maxErrorVal2 = 0.0;
|
double maxErrorVal2 = 0.0;
|
||||||
int skipTestingRelaxed = 0;
|
|
||||||
|
|
||||||
logFunctionInfo(f->name, sizeof(cl_float), relaxedMode);
|
logFunctionInfo(f->name, sizeof(cl_float), relaxedMode);
|
||||||
|
|
||||||
|
|||||||
@@ -469,7 +469,6 @@ static cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)
|
|||||||
float ulps = job->ulps;
|
float ulps = job->ulps;
|
||||||
dptr func = job->f->dfunc;
|
dptr func = job->f->dfunc;
|
||||||
int ftz = job->ftz;
|
int ftz = job->ftz;
|
||||||
bool relaxedMode = job->relaxedMode;
|
|
||||||
MTdata d = tinfo->d;
|
MTdata d = tinfo->d;
|
||||||
cl_int error;
|
cl_int error;
|
||||||
const char *name = job->f->name;
|
const char *name = job->f->name;
|
||||||
|
|||||||
@@ -382,8 +382,6 @@ static float round_toward_zero_float(cl_ulong p, int exponent)
|
|||||||
|
|
||||||
static float round_toward_zero_float_ftz(cl_ulong p, int exponent)
|
static float round_toward_zero_float_ftz(cl_ulong p, int exponent)
|
||||||
{
|
{
|
||||||
extern int gCheckTininessBeforeRounding;
|
|
||||||
|
|
||||||
union {
|
union {
|
||||||
cl_uint u;
|
cl_uint u;
|
||||||
cl_float d;
|
cl_float d;
|
||||||
@@ -2682,20 +2680,6 @@ static inline void mul128(cl_ulong a, cl_ulong b, cl_ulong *hi, cl_ulong *lo)
|
|||||||
*lo = (aloblo & 0xffffffffULL) | (alobhi << 32);
|
*lo = (aloblo & 0xffffffffULL) | (alobhi << 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move the most significant non-zero bit to the MSB
|
|
||||||
// Note: not general. Only works if the most significant non-zero bit is at
|
|
||||||
// MSB-1
|
|
||||||
static inline void renormalize(cl_ulong *hi, cl_ulong *lo, int *exponent)
|
|
||||||
{
|
|
||||||
if (0 == (0x8000000000000000ULL & *hi))
|
|
||||||
{
|
|
||||||
*hi <<= 1;
|
|
||||||
*hi |= *lo >> 63;
|
|
||||||
*lo <<= 1;
|
|
||||||
*exponent -= 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static double round_to_nearest_even_double(cl_ulong hi, cl_ulong lo,
|
static double round_to_nearest_even_double(cl_ulong hi, cl_ulong lo,
|
||||||
int exponent)
|
int exponent)
|
||||||
{
|
{
|
||||||
@@ -2990,8 +2974,6 @@ long double reference_recipl(long double x) { return 1.0L / x; }
|
|||||||
|
|
||||||
long double reference_rootnl(long double x, int i)
|
long double reference_rootnl(long double x, int i)
|
||||||
{
|
{
|
||||||
double hi, lo;
|
|
||||||
long double l;
|
|
||||||
// rootn ( x, 0 ) returns a NaN.
|
// rootn ( x, 0 ) returns a NaN.
|
||||||
if (0 == i) return cl_make_nan();
|
if (0 == i) return cl_make_nan();
|
||||||
|
|
||||||
@@ -3290,7 +3272,6 @@ long double reference_cbrtl(long double x)
|
|||||||
|
|
||||||
if (isnan(x) || fabsx == 1.0 || fabsx == 0.0 || isinf(x)) return x;
|
if (isnan(x) || fabsx == 1.0 || fabsx == 0.0 || isinf(x)) return x;
|
||||||
|
|
||||||
double iy = 0.0;
|
|
||||||
double log2x_hi, log2x_lo;
|
double log2x_hi, log2x_lo;
|
||||||
|
|
||||||
// extended precision log .... accurate to at least 64-bits + couple of
|
// extended precision log .... accurate to at least 64-bits + couple of
|
||||||
@@ -3604,12 +3585,6 @@ long double reference_expm1l(long double x)
|
|||||||
// unimplemented
|
// unimplemented
|
||||||
return x;
|
return x;
|
||||||
#else
|
#else
|
||||||
union {
|
|
||||||
double f;
|
|
||||||
cl_ulong u;
|
|
||||||
} u;
|
|
||||||
u.f = (double)x;
|
|
||||||
|
|
||||||
if (reference_isnanl(x)) return x;
|
if (reference_isnanl(x)) return x;
|
||||||
|
|
||||||
if (x > 710) return INFINITY;
|
if (x > 710) return INFINITY;
|
||||||
|
|||||||
@@ -124,9 +124,7 @@ static cl_int BuildKernelFn(cl_uint job_id, cl_uint thread_id UNUSED, void *p)
|
|||||||
|
|
||||||
int TestFunc_Float2_Float(const Func *f, MTdata d, bool relaxedMode)
|
int TestFunc_Float2_Float(const Func *f, MTdata d, bool relaxedMode)
|
||||||
{
|
{
|
||||||
uint32_t l;
|
|
||||||
int error;
|
int error;
|
||||||
char const *testing_mode;
|
|
||||||
cl_program programs[VECTOR_SIZE_COUNT];
|
cl_program programs[VECTOR_SIZE_COUNT];
|
||||||
cl_kernel kernels[VECTOR_SIZE_COUNT];
|
cl_kernel kernels[VECTOR_SIZE_COUNT];
|
||||||
float maxError0 = 0.0f;
|
float maxError0 = 0.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user