diff --git a/test_conformance/math_brute_force/binary_float.cpp b/test_conformance/math_brute_force/binary_float.cpp index 80ddba6f..32caafa3 100644 --- a/test_conformance/math_brute_force/binary_float.cpp +++ b/test_conformance/math_brute_force/binary_float.cpp @@ -279,7 +279,6 @@ int TestFunc_Float_Float_Float(const Func *f, MTdata d, bool relaxedMode) float maxError = 0.0f; double maxErrorVal = 0.0; double maxErrorVal2 = 0.0; - int skipTestingRelaxed = 0; logFunctionInfo(f->name, sizeof(cl_float), relaxedMode); diff --git a/test_conformance/math_brute_force/binary_operator_double.cpp b/test_conformance/math_brute_force/binary_operator_double.cpp index 5481f127..21e76c85 100644 --- a/test_conformance/math_brute_force/binary_operator_double.cpp +++ b/test_conformance/math_brute_force/binary_operator_double.cpp @@ -469,7 +469,6 @@ static cl_int Test(cl_uint job_id, cl_uint thread_id, void *data) float ulps = job->ulps; dptr func = job->f->dfunc; int ftz = job->ftz; - bool relaxedMode = job->relaxedMode; MTdata d = tinfo->d; cl_int error; const char *name = job->f->name; diff --git a/test_conformance/math_brute_force/reference_math.cpp b/test_conformance/math_brute_force/reference_math.cpp index cca134d4..3a6516ba 100644 --- a/test_conformance/math_brute_force/reference_math.cpp +++ b/test_conformance/math_brute_force/reference_math.cpp @@ -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) { - extern int gCheckTininessBeforeRounding; - union { cl_uint u; 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); } -// 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, 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) { - double hi, lo; - long double l; // rootn ( x, 0 ) returns a 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; - double iy = 0.0; double log2x_hi, log2x_lo; // extended precision log .... accurate to at least 64-bits + couple of @@ -3604,12 +3585,6 @@ long double reference_expm1l(long double x) // unimplemented return x; #else - union { - double f; - cl_ulong u; - } u; - u.f = (double)x; - if (reference_isnanl(x)) return x; if (x > 710) return INFINITY; diff --git a/test_conformance/math_brute_force/unary_two_results_float.cpp b/test_conformance/math_brute_force/unary_two_results_float.cpp index 639a9205..4a375ce3 100644 --- a/test_conformance/math_brute_force/unary_two_results_float.cpp +++ b/test_conformance/math_brute_force/unary_two_results_float.cpp @@ -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) { - uint32_t l; int error; - char const *testing_mode; cl_program programs[VECTOR_SIZE_COUNT]; cl_kernel kernels[VECTOR_SIZE_COUNT]; float maxError0 = 0.0f;