Home
last modified time | relevance | path

Searched refs:eps (Results 1 - 25 of 62) sorted by relevance

123

/third_party/benchmark/src/
H A Dcheck.h98 #define BM_CHECK_FLOAT_EQ(a, b, eps) BM_CHECK(std::fabs((a) - (b)) < (eps))
99 #define BM_CHECK_FLOAT_NE(a, b, eps) BM_CHECK(std::fabs((a) - (b)) >= (eps))
100 #define BM_CHECK_FLOAT_GE(a, b, eps) BM_CHECK((a) - (b) > -(eps))
101 #define BM_CHECK_FLOAT_LE(a, b, eps) BM_CHECK((b) - (a) > -(eps))
102 #define BM_CHECK_FLOAT_GT(a, b, eps) BM_CHECK((a) - (b) > (eps))
[all...]
/third_party/alsa-utils/topology/nhlt/
H A Dnhlt-processor.c45 static void debug_print_nhlt(struct nhlt *blob, struct endpoint_descriptor **eps) in debug_print_nhlt() argument
70 ep = eps[i]; in debug_print_nhlt()
92 struct endpoint_descriptor **eps ATTRIBUTE_UNUSED) {} in debug_print_nhlt()
181 static void save_nhlt_binary(struct nhlt *blob, struct endpoint_descriptor **eps, snd_config_t *cfg) in save_nhlt_binary() argument
207 fwrite(eps[i], eps[i]->length, sizeof(uint8_t), fp); in save_nhlt_binary()
277 static int nhlt_get_flat_buffer(struct nhlt *blob, struct endpoint_descriptor **eps, in nhlt_get_flat_buffer() argument
291 if (eps[i]) in nhlt_get_flat_buffer()
292 nhlt_size += eps[i]->length; in nhlt_get_flat_buffer()
306 ep = eps[ in nhlt_get_flat_buffer()
322 struct endpoint_descriptor *eps[MAX_ENDPOINT_COUNT]; nhlt_create() local
[all...]
/third_party/skia/third_party/externals/angle2/scripts/
H A Dgenerate_entry_points.py1855 for category, eps in spec_json.items():
1858 for ep in eps:
2663 eps = GLEntryPoints(apis.GLES, xml, version_commands)
2664 eps.decls.insert(0, "extern \"C\" {")
2665 eps.decls.append("} // extern \"C\"")
2666 eps.defs.insert(0, "extern \"C\" {")
2667 eps.defs.append("} // extern \"C\"")
2672 libgles_ep_defs += ["\n// OpenGL ES %s" % comment] + eps.export_defs
2690 "\n".join(eps.decls), "h", header_includes, "libGLESv2", "gl.xml")
2691 write_file(annotation, "GLES " + comment, TEMPLATE_ENTRY_POINT_SOURCE, "\n".join(eps
[all...]
/third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.04/
H A D11.04.04-006.js16 var eps = 0.00000001; variable
18 assert(++a >= 2.12 - eps && a <= 2.12 + eps);
/third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.05/
H A D11.04.05-006.js15 var eps = 0.000000001; variable
18 assert(--a >= 0.12 - eps &&
19 a <= 0.12 + eps
/third_party/vk-gl-cts/framework/randomshaders/
H A DrsgBinaryOps.cpp513 const float eps = 0.001f; in operator ()() local
515 DE_ASSERT(de::inRange(aMin*bMin, dstMin-eps, dstMax+eps)); in operator ()()
516 DE_ASSERT(de::inRange(aMin*bMax, dstMin-eps, dstMax+eps)); in operator ()()
517 DE_ASSERT(de::inRange(aMax*bMin, dstMin-eps, dstMax+eps)); in operator ()()
518 DE_ASSERT(de::inRange(aMax*bMax, dstMin-eps, dstMax+eps)); in operator ()()
566 T eps in operator ()() local
616 T eps = T(0.001); operator ()() local
[all...]
/third_party/python/Lib/test/test_importlib/
H A Dtest_metadata_api.py77 eps = entry_points()
78 assert 'entries' in eps.groups
79 entries = eps.select(group='entries')
134 eps = dict(entry_points(group='entries'))
136 assert 'main' in eps
137 assert eps['main'] == entry_points(group='entries')['main']
151 eps = distribution('distinfo-pkg').entry_points
153 eps[0]
/third_party/ffmpeg/tests/checkasm/
H A Dcheckasm.c334 int float_near_abs_eps(float a, float b, float eps) in float_near_abs_eps() argument
337 if (abs_diff < eps) in float_near_abs_eps()
340 fprintf(stderr, "test failed comparing %g with %g (abs diff=%g with EPS=%g)\n", a, b, abs_diff, eps); in float_near_abs_eps()
345 int float_near_abs_eps_array(const float *a, const float *b, float eps, in float_near_abs_eps_array() argument
351 if (!float_near_abs_eps(a[i], b[i], eps)) in float_near_abs_eps_array()
357 int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp) in float_near_abs_eps_ulp() argument
359 return float_near_ulp(a, b, max_ulp) || float_near_abs_eps(a, b, eps); in float_near_abs_eps_ulp()
362 int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps, in float_near_abs_eps_array_ulp() argument
368 if (!float_near_abs_eps_ulp(a[i], b[i], eps, max_ulp)) in float_near_abs_eps_array_ulp()
374 int double_near_abs_eps(double a, double b, double eps) in double_near_abs_eps() argument
381 double_near_abs_eps_array(const double *a, const double *b, double eps, unsigned len) double_near_abs_eps_array() argument
[all...]
H A Dcheckasm.h102 int float_near_abs_eps(float a, float b, float eps);
103 int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp);
106 int float_near_abs_eps_array(const float *a, const float *b, float eps,
108 int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps,
110 int double_near_abs_eps(double a, double b, double eps);
111 int double_near_abs_eps_array(const double *a, const double *b, double eps,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
H A DvktImageMisalignedCubeTests.cpp166 const float eps = 1.0f / float(2 * 256); in iterate() local
261 if (deFloatAbs(delta.x()) > eps || deFloatAbs(delta.y()) > eps || deFloatAbs(delta.z()) > eps || deFloatAbs(delta.w()) > eps) in iterate()
274 if (deFloatAbs(delta.x()) > eps || deFloatAbs(delta.y()) > eps || deFloatAbs(delta.z()) > eps || deFloatAbs(delta.w()) > eps) in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
H A DvktImageMisalignedCubeTests.cpp166 const float eps = 1.0f / float(2 * 256); in iterate() local
261 if (deFloatAbs(delta.x()) > eps || deFloatAbs(delta.y()) > eps || deFloatAbs(delta.z()) > eps || deFloatAbs(delta.w()) > eps) in iterate()
274 if (deFloatAbs(delta.x()) > eps || deFloatAbs(delta.y()) > eps || deFloatAbs(delta.z()) > eps || deFloatAbs(delta.w()) > eps) in iterate()
/third_party/musl/libc-test/src/math/
H A Disless.c33 volatile double eps = DBL_EPSILON; in main() local
48 T(1.0, 1.0+eps, LESS); in main()
49 T(1.0+eps, 1.0, GREATER); in main()
81 T(1.0, 1.0+eps*0.25, LESS); in main()
86 T(1.0, 1.0+eps*0.25, EQUAL); in main()
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/
H A Df_generic.c409 struct generic_ep *ep = priv->eps; in generic_eps_free()
431 usbm_free(&priv->obj, priv->eps); in generic_eps_free()
432 priv->eps = NULL; in generic_eps_free()
442 priv->eps = (struct generic_ep *)usbm_zalloc(&priv->obj, size); in generic_eps_alloc()
443 if (priv->eps == NULL) in generic_eps_alloc()
445 usb_err("%s: allocate eps failed", __FUNCTION__); in generic_eps_alloc()
455 priv->eps[i].descs[j] = priv->eps_descs[i][j]; in generic_eps_alloc()
460 desc = priv->eps[i].descs[2]; in generic_eps_alloc()
463 desc = priv->eps[i].descs[1]; in generic_eps_alloc()
466 desc = priv->eps[ in generic_eps_alloc()
[all...]
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_test_main.c262 compare_vec_with_eps(struct lp_type type, const void *res, const void *ref, double eps) in compare_vec_with_eps() argument
265 eps *= type.floating ? 8.0 : 2.0; in compare_vec_with_eps()
274 if (delta >= eps) { in compare_vec_with_eps()
286 double eps = lp_const_eps(type); in compare_vec() local
287 return compare_vec_with_eps(type, res, ref, eps); in compare_vec()
H A Dlp_test_conv.c168 double eps; in test_one() local
213 eps = MAX2(lp_const_eps(src_type), lp_const_eps(dst_type)); in test_one()
220 eps *= 2; in test_one()
264 if(!compare_vec_with_eps(dst_type, dst + j*dst_stride, ref + j*dst_stride, eps)) in test_one()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fShaderCommonFunctionTests.cpp648 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare() local
654 const int minRes = int(roundEven(in0-eps)); in compare()
655 const int maxRes = int(roundEven(in0+eps)); in compare()
1100 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare() local
1106 const int minRes = int(deFloatFloor(in0-eps)); in compare()
1107 const int maxRes = int(deFloatFloor(in0+eps)); in compare()
1208 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare()
1214 const int minRes = int(in0-eps); in compare()
1215 const int maxRes = int(in0+eps); in compare()
1336 const float eps in compare() local
1434 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds compare() local
1551 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds compare() local
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DDepthStencilFormatsTest.cpp695 const GLfloat eps = 0.002; in TEST_P() local
707 expectedMin[i] = expectedMin[i] - eps; in TEST_P()
708 expectedMax[i] = expectedMax[i] + eps; in TEST_P()
714 d00 - eps, d00, d00, d10 - eps, d00, d00, d00, d10, in TEST_P()
715 d00, d00, d00, d10, d01 - eps, d01, d01, d11 - eps, in TEST_P()
718 d00 + eps, d10, d10, d10 + eps, d01, d11, d11, d11, in TEST_P()
719 d01, d11, d11, d11, d01 + eps, d1 in TEST_P()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_guided.c48 float eps; member
85 { "eps", "set the regularization parameter (with square)", OFFSET(eps), AV_OPT_TYPE_FLOAT, {.dbl = 0.01 }, 0.0, 1, TFLAGS },
199 uint8_t *ddst, int radius, float eps, int width, int height, \
259 A[x] = covIP / (varI + eps); \
302 guided_byte(ctx, s, in->data[plane], ref->data[plane], (*out)->data[plane], s->radius, s->eps, in filter_frame()
306 guided_word(ctx, s, in->data[plane], ref->data[plane], (*out)->data[plane], s->radius, s->eps, in filter_frame()
H A Daf_anlms.c45 float eps; member
69 { "eps", "set the filter eps", OFFSET(eps), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 1, AT },
133 norm = s->eps + sum; in process_sample()
H A Dvf_vif.c119 float sigma1_sq, sigma2_sq, sigma12, g, sv_sq, eps = 1.0e-10f; in vif_statistic() local
145 g = sigma12 / (sigma1_sq + eps); in vif_statistic()
148 if (sigma1_sq < eps) { in vif_statistic()
154 if (sigma2_sq < eps) { in vif_statistic()
163 sv_sq = FFMAX(sv_sq, eps); in vif_statistic()
/third_party/python/Lib/importlib/metadata/
H A D__init__.py474 def load(cls, eps):
476 ordered = sorted(eps, key=by_group)
478 return cls((group, EntryPoints(eps)) for group, eps in grouped)
1037 eps = itertools.chain.from_iterable(
1040 return SelectableGroups.load(eps).select(**params)
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fShaderCommonFunctionTests.cpp723 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare() local
729 const int minRes = int(roundEven(in0-eps)); in compare()
730 const int maxRes = int(roundEven(in0+eps)); in compare()
1180 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare() local
1186 const int minRes = int(deFloatFloor(in0-eps)); in compare()
1187 const int maxRes = int(deFloatFloor(in0+eps)); in compare()
1288 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare()
1294 const int minRes = int(in0-eps); in compare()
1295 const int maxRes = int(in0+eps); in compare()
1416 const float eps in compare() local
1514 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds compare() local
1631 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds compare() local
[all...]
/third_party/vk-gl-cts/modules/glshared/
H A DglsShaderPerformanceCase.cpp67 const float eps = 0.01f; in setVertexFragmentRatio() local
79 if (de::abs(ratio - fragmentsPerVertices) < eps) in setVertexFragmentRatio()
/third_party/vk-gl-cts/modules/egl/
H A DteglColorClearCase.cpp247 tcu::RGBA eps = pixelFmt.alphaBits == 1 ? RGBA(1,1,1,127) : RGBA(1,1,1,1); in executeForContexts() local
248 bool imagesOk = tcu::pixelThresholdCompare(log, "ComparisonResult", "Image comparison result", refFrame, frame, eps + pixelFmt.getColorThreshold(), tcu::COMPARE_LOG_RESULT); in executeForContexts()
435 tcu::RGBA eps = pixelFmt.alphaBits == 1 ? RGBA(1,1,1,127) : RGBA(1,1,1,1); in executeForContexts() local
436 bool imagesOk = tcu::pixelThresholdCompare(log, "ComparisonResult", "Image comparison result", refFrame, frame, eps + pixelFmt.getColorThreshold(), tcu::COMPARE_LOG_RESULT); in executeForContexts()
/third_party/python/Python/
H A Ddtoa.c2292 U d2, eps, u; in _Py_dg_dtoa() local
2483 dval(&eps) = ieps*dval(&u) + 7.; in _Py_dg_dtoa()
2484 word0(&eps) -= (P-1)*Exp_msk1; in _Py_dg_dtoa()
2488 if (dval(&u) > dval(&eps)) in _Py_dg_dtoa()
2490 if (dval(&u) < -dval(&eps)) in _Py_dg_dtoa()
2498 dval(&eps) = 0.5/tens[ilim-1] - dval(&eps); in _Py_dg_dtoa()
2503 if (dval(&u) < dval(&eps)) in _Py_dg_dtoa()
2505 if (1. - dval(&u) < dval(&eps)) in _Py_dg_dtoa()
2509 dval(&eps) * in _Py_dg_dtoa()
[all...]

Completed in 27 milliseconds

123