/external/OpenCL-CTS/test_conformance/math_brute_force/ |
D | unary_float.cpp | 144 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 …]
|
D | binary_operator_double.cpp | 158 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 …]
|
D | binary_double.cpp | 159 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 …]
|
D | binary_float.cpp | 157 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 …]
|
D | binary_operator_float.cpp | 156 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 …]
|
D | unary_double.cpp | 146 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()
|
D | binary_i_double.cpp | 158 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()
|
D | binary_i_float.cpp | 156 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()
|
D | utility.h | 120 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()
|
D | README.txt | 127 Errors are measured in ulps, and stored in a single precision representation. So as
|
/external/OpenCL-CTS/test_conformance/spir/ |
D | run_build_test.cpp | 267 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()
|
D | kernelargs.h | 113 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()
|
D | run_services.h | 220 bool compare_results(const TestResult& lhs, const TestResult& rhs, float ulps);
|
D | run_services.cpp | 748 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/ |
D | ulp.inl | 247 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/ |
D | test_readimage3d.cpp | 86 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/ |
D | writeImage.cpp | 374 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/ |
D | catch_matchers_floating.cpp | 127 WithinUlpsMatcher::WithinUlpsMatcher(double target, uint64_t ulps, FloatingPointKind baseType) in WithinUlpsMatcher() argument 128 :m_target{ target }, m_ulps{ ulps }, m_type{ baseType } { in WithinUlpsMatcher()
|
D | catch_matchers_floating.h | 29 WithinUlpsMatcher(double target, uint64_t ulps, FloatingPointKind baseType);
|
/external/OpenCL-CTS/test_conformance/geometrics/ |
D | test_geometrics_double.cpp | 607 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()
|
D | test_geometrics.cpp | 719 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/ |
D | vktSpvAsmInstructionTests.cpp | 14190 …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/ |
D | mathtest.c | 977 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/ |
D | mathtest.c | 978 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/ |
D | test_math.py | 51 def ulps_check(expected, got, ulps=20): argument 58 if abs(ulps_error) <= ulps: 61 ulps)
|