Home
last modified time | relevance | path

Searched refs:ulps (Results 1 – 25 of 59) sorted by relevance

123

/external/OpenCL-CTS/test_conformance/math_brute_force/
Dunary_float.cpp144 float ulps; // max_allowed ulps member
185 test_info.ulps = gIsEmbedded ? f->float_embedded_ulps : f->float_ulps; in TestFunc_Float_Float()
260 + test_info.ulps in TestFunc_Float_Float()
356 float ulps = getAllowedUlpError(job->f, relaxedMode); in Test() local
530 fail = !(fabsf(abs_error) <= ulps); in Test()
538 fail = !(fabsf(abs_error) <= ulps); in Test()
545 fail = !(fabsf(err) <= ulps); in Test()
550 float exp_error = ulps; in Test()
558 ulps = exp_error; in Test()
565 fail = !(fabsf(err) <= ulps); in Test()
[all …]
Dbinary_operator_double.cpp158 float ulps; // max_allowed ulps member
312 test_info.ulps = f->double_ulps; in TestFunc_Double_Double_Double_Operator()
469 float ulps = job->ulps; in Test() local
652 int fail = !(fabsf(err) <= ulps); in Test()
657 if (IsDoubleResultSubnormal(correct, ulps)) in Test()
674 && ((!(fabsf(err2) <= ulps)) in Test()
675 && (!(fabsf(err3) <= ulps))); in Test()
680 if (IsDoubleResultSubnormal(correct2, ulps) in Test()
681 || IsDoubleResultSubnormal(correct3, ulps)) in Test()
701 && ((!(fabsf(err2) <= ulps)) in Test()
[all …]
Dbinary_double.cpp159 float ulps; // max_allowed ulps member
314 test_info.ulps = f->double_ulps; in TestFunc_Double_Double_Double()
475 float ulps = job->ulps; in Test() local
660 int fail = !(fabsf(err) <= ulps); in Test()
665 if (IsDoubleResultSubnormal(correct, ulps)) in Test()
702 && ((!(fabsf(err2) <= ulps)) in Test()
703 && (!(fabsf(err3) <= ulps))); in Test()
708 if (IsDoubleResultSubnormal(correct2, ulps) in Test()
709 || IsDoubleResultSubnormal(correct3, ulps)) in Test()
731 && ((!(fabsf(err2) <= ulps)) in Test()
[all …]
Dbinary_float.cpp157 float ulps; // max_allowed ulps member
304 test_info.ulps = gIsEmbedded ? f->float_embedded_ulps : f->float_ulps; in TestFunc_Float_Float_Float()
469 float ulps = getAllowedUlpError(job->f, relaxedMode); in Test() local
490 ulps = INFINITY; in Test()
727 int fail = !(fabsf(err) <= ulps); in Test()
732 if (IsFloatResultSubnormal(correct, ulps)) in Test()
796 && ((!(fabsf(err2) <= ulps)) in Test()
797 && (!(fabsf(err3) <= ulps))); in Test()
802 if (IsFloatResultSubnormal(correct2, ulps) in Test()
803 || IsFloatResultSubnormal(correct3, ulps)) in Test()
[all …]
Dbinary_operator_float.cpp156 float ulps; // max_allowed ulps member
302 test_info.ulps = gIsEmbedded ? f->float_embedded_ulps : f->float_ulps; in TestFunc_Float_Float_Float_Operator()
464 float ulps = getAllowedUlpError(job->f, relaxedMode); in Test() local
719 ((!(fabsf(err) <= ulps)) && (!(fabsf(errB) <= ulps))); in Test()
725 if (IsFloatResultSubnormal(correct, ulps)) in Test()
760 && ((!(fabsf(err2) <= ulps)) in Test()
761 && (!(fabsf(err3) <= ulps))); in Test()
766 if (IsFloatResultSubnormal(correct2, ulps) in Test()
767 || IsFloatResultSubnormal(correct3, ulps)) in Test()
811 && ((!(fabsf(err2) <= ulps)) in Test()
[all …]
Dunary_double.cpp146 float ulps; // max_allowed ulps member
185 test_info.ulps = f->double_ulps; in TestFunc_Double_Double()
329 float ulps = job->ulps; in Test() local
462 int fail = !(fabsf(err) <= ulps); in Test()
469 if (IsDoubleResultSubnormal(correct, ulps)) in Test()
485 && ((!(fabsf(err2) <= ulps)) in Test()
486 && (!(fabsf(err3) <= ulps))); in Test()
491 if (IsDoubleResultSubnormal(correct2, ulps) in Test()
492 || IsDoubleResultSubnormal(correct3, ulps)) in Test()
538 base, job->step, buffer_elements, job->scale, job->ulps, in Test()
Dbinary_i_double.cpp158 float ulps; // max_allowed ulps member
316 test_info.ulps = f->double_ulps; in TestFunc_Double_Double_Int()
476 float ulps = job->ulps; in Test() local
659 int fail = !(fabsf(err) <= ulps); in Test()
664 if (IsDoubleResultSubnormal(correct, ulps)) in Test()
680 && ((!(fabsf(err2) <= ulps)) in Test()
681 && (!(fabsf(err3) <= ulps))); in Test()
686 if (IsDoubleResultSubnormal(correct2, ulps) in Test()
687 || IsDoubleResultSubnormal(correct3, ulps)) in Test()
734 base, job->step, job->scale, buffer_elements, job->ulps, in Test()
Dbinary_i_float.cpp156 float ulps; // max_allowed ulps member
308 test_info.ulps = gIsEmbedded ? f->float_embedded_ulps : f->float_ulps; in TestFunc_Float_Float_Int()
471 float ulps = job->ulps; in Test() local
651 int fail = !(fabsf(err) <= ulps); in Test()
656 if (IsFloatResultSubnormal(correct, ulps)) in Test()
672 && ((!(fabsf(err2) <= ulps)) in Test()
673 && (!(fabsf(err3) <= ulps))); in Test()
678 if (IsFloatResultSubnormal(correct2, ulps) in Test()
679 || IsFloatResultSubnormal(correct3, ulps)) in Test()
728 base, job->step, job->scale, buffer_elements, job->ulps, in Test()
Dutility.h120 static inline int IsFloatResultSubnormal(double x, float ulps) in IsFloatResultSubnormal() argument
122 x = fabs(x) - MAKE_HEX_DOUBLE(0x1.0p-149, 0x1, -149) * (double)ulps; in IsFloatResultSubnormal()
132 static inline int IsDoubleResultSubnormal(long double x, float ulps) in IsDoubleResultSubnormal() argument
134 x = fabsl(x) - MAKE_HEX_LONG(0x1.0p-1074, 0x1, -1074) * (long double)ulps; in IsDoubleResultSubnormal()
DREADME.txt127 Errors are measured in ulps, and stored in a single precision representation. So as
/external/OpenCL-CTS/test_conformance/spir/
Drun_build_test.cpp267 float ulps) in run_test() argument
279 assert (compare_results(cl_result, *bc_result, ulps) && "not equal?"); in run_test()
297 if( !compare_results(cl_result, *bc_result, ulps) ) in run_test()
310 float ulps = 0.f; in get_max_ulps() local
321 ulps = func->float_ulps; in get_max_ulps()
328 ulps = func->double_ulps; in get_max_ulps()
333 return ulps; in get_max_ulps()
357 float ulps = get_max_ulps(test_name); in runBuildTest() local
453 bool success = run_test(context, queue, clprog, bcprog, kernel_name, err, device, ulps); in runBuildTest()
Dkernelargs.h113 virtual bool compare( const KernelArg& rhs, float ulps ) const in compare() argument
147 if (fabsf(Ulp_Error(l, r)) > ulps) in compare()
161 if (fabsf(Ulp_Error_Double(l, r)) > ulps) in compare()
Drun_services.h220 bool compare_results(const TestResult& lhs, const TestResult& rhs, float ulps);
Drun_services.cpp748 bool compare_results( const TestResult& lhs, const TestResult& rhs, float ulps ) in compare_results() argument
758 if( ! lhs.kernelArgs().getArg(i)->compare( *rhs.kernelArgs().getArg(i), ulps ) ) in compare_results()
/external/oboe/samples/RhythmGame/third_party/glm/gtc/
Dulp.inl247 GLM_FUNC_QUALIFIER T next_float(T const & x, uint const & ulps) argument
250 for(uint i = 0; i < ulps; ++i)
256 GLM_FUNC_QUALIFIER vecType<T, P> next_float(vecType<T, P> const & x, vecType<uint, P> const & ulps) argument
260 Result[i] = next_float(x[i], ulps[i]);
265 GLM_FUNC_QUALIFIER T prev_float(T const & x, uint const & ulps) argument
268 for(uint i = 0; i < ulps; ++i)
274 GLM_FUNC_QUALIFIER vecType<T, P> prev_float(vecType<T, P> const & x, vecType<uint, P> const & ulps) argument
278 Result[i] = prev_float(x[i], ulps[i]);
/external/OpenCL-CTS/test_conformance/basic/
Dtest_readimage3d.cpp86 float ulps = Ulp_Error( outptr[i], image[i]); in verify_3d_image8() local
88 if(! (fabsf(ulps) < 1.5f) ) in verify_3d_image8()
91 (int)i, image[i], outptr[ i ], ulps ); in verify_3d_image8()
/external/OpenCL-CTS/test_conformance/profiling/
DwriteImage.cpp374 float ulps = Ulp_Error( outptr[i], refptr[i]); in verifyImageFloat() local
376 if(! (fabsf(ulps) < 1.5f) ) in verifyImageFloat()
379 (int)i, refptr[i], outptr[ i ], ulps ); in verifyImageFloat()
/external/catch2/include/internal/
Dcatch_matchers_floating.cpp127 WithinUlpsMatcher::WithinUlpsMatcher(double target, uint64_t ulps, FloatingPointKind baseType) in WithinUlpsMatcher() argument
128 :m_target{ target }, m_ulps{ ulps }, m_type{ baseType } { in WithinUlpsMatcher()
Dcatch_matchers_floating.h29 WithinUlpsMatcher(double target, uint64_t ulps, FloatingPointKind baseType);
/external/OpenCL-CTS/test_conformance/geometrics/
Dtest_geometrics_double.cpp607 double ulps = Ulp_Error_Double( outData[i], expected ); in test_oneToFloat_kernel_double() local
608 if( fabs( ulps ) <= ulpLimit ) in test_oneToFloat_kernel_double()
615 if(! (fabs(ulps) < ulpLimit) ) in test_oneToFloat_kernel_double()
618 (int)i, (int)vecSize, expected, outData[ i ], inDataA[i*vecSize], ulps ); in test_oneToFloat_kernel_double()
Dtest_geometrics.cpp719 float ulps = Ulp_Error( outData[i], expected ); in test_oneToFloat_kernel() local
720 if( fabsf( ulps ) <= ulpLimit ) in test_oneToFloat_kernel()
727 if(! (fabsf(ulps) < ulpLimit) ) in test_oneToFloat_kernel()
730 (int)i, (int)vecSize, expected, outData[ i ], inDataA[i*vecSize], ulps ); in test_oneToFloat_kernel()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp14190 …rtual double getMin (double value, double ulps) { return value - floatFormat16.ulp(deAbs(val… in getMin()
14191 …rtual double getMax (double value, double ulps) { return value + floatFormat16.ulp(deAbs(val… in getMax()
14596 …const double ulps (64 * (1.0 + 2 * deAbs(d))); // This is not a precision test. Value is not from … in calc() local
14603 error = floatFormat16.ulp(deAbs(result), ulps); in calc()
14613 …error = deAbs(floatFormat16.ulp(epx.asDouble(), ulps)) + deAbs(floatFormat16.ulp(enx.asDouble(), u… in calc()
14641 …const double ulps (64 * (1.0 + 2 * deAbs(d))); // This is not a precision test. Value is not from … in calc() local
14663 min[0] = result - floatFormat16.ulp(deAbs(result), ulps); in calc()
14664 max[0] = result + floatFormat16.ulp(deAbs(result), ulps); in calc()
14731 const double ulps (getULPs(in)); in calc() local
14734 const double epxmerr = floatFormat16.ulp(epxm, ulps); in calc()
[all …]
/external/arm-optimized-routines/math/test/
Dmathtest.c977 void print_ulps_helper(const char *name, long long ulps, char** failp) { in print_ulps_helper() argument
978 if(ulps == LLONG_MAX) { in print_ulps_helper()
981 *failp += sprintf(*failp, " %s=%.3f", name, (double)ulps / ULPUNIT); in print_ulps_helper()
/external/llvm-project/libc/AOR_v20.02/math/test/
Dmathtest.c978 void print_ulps_helper(const char *name, long long ulps, char** failp) { in print_ulps_helper() argument
979 if(ulps == LLONG_MAX) { in print_ulps_helper()
982 *failp += sprintf(*failp, " %s=%.3f", name, (double)ulps / ULPUNIT); in print_ulps_helper()
/external/python/cpython2/Lib/test/
Dtest_math.py51 def ulps_check(expected, got, ulps=20): argument
58 if abs(ulps_error) <= ulps:
61 ulps)

123