Home
last modified time | relevance | path

Searched refs:eps (Results 1 - 25 of 75) 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...]
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_triangle.cpp98 edge.eps += edge.dPoint.y; in StepToNextPointOnEdge()
99 if ((edge.eps << 1) >= edge.dPoint.x) { in StepToNextPointOnEdge()
101 edge.eps -= edge.dPoint.x; in StepToNextPointOnEdge()
105 edge.eps += edge.dPoint.x; in StepToNextPointOnEdge()
106 if ((edge.eps << 1) >= edge.dPoint.y) { in StepToNextPointOnEdge()
108 edge.eps -= edge.dPoint.y; in StepToNextPointOnEdge()
121 edge.eps = 0; in InitEdge()
/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/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...]
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/
H A Dcpu_brightness_algo.cpp60 float eps = ESP; in OnApplyRGBA8888() local
61 if (fabs(brightness) < eps) { in OnApplyRGBA8888()
73 float current = CommonUtils::Clip(1.f - (float)(idx) / UNSIGHED_CHAR_MAX, 0, 1) + eps; in OnApplyRGBA8888()
109 float eps = ESP; in OnApplyYUVNV21() local
110 if (fabs(brightness) < eps) { in OnApplyYUVNV21()
122 float current = CommonUtils::Clip(1.f - (float)(idx) / UNSIGHED_CHAR_MAX, 0, 1) + eps; in OnApplyYUVNV21()
169 float eps = ESP; in OnApplyYUVNV12() local
170 if (fabs(brightness) < eps) { in OnApplyYUVNV12()
182 float current = CommonUtils::Clip(1.f - (float)(i) / UNSIGHED_CHAR_MAX, 0, 1) + eps; in OnApplyYUVNV12()
/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()
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/
H A Dcpu_contrast_algo.cpp51 float eps = ESP; in OnApplyRGBA8888() local
52 if (fabs(contrast) < eps) { in OnApplyRGBA8888()
99 float eps = ESP; in OnApplyYUVNV21() local
100 if (fabs(contrast) < eps) { in OnApplyYUVNV21()
157 float eps = ESP; in OnApplyYUVNV12() local
158 if (fabs(contrast) < eps) { in OnApplyYUVNV12()
/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()
/foundation/window/window_manager/utils/include/
H A Dwm_math.h46 static constexpr double eps = -0.001f; in LessNotEqual() local
47 return (left - right) < eps; in LessNotEqual()
52 static constexpr double eps = 0.001f; in GreatNotEqual() local
53 return (left - right) > eps; in GreatNotEqual()
/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()
/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/alsa-utils/topology/nhlt/intel/
H A Ddmic-nhlt.h15 int nhlt_dmic_get_ep(struct intel_nhlt_params *nhlt, struct endpoint_descriptor **eps,
/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()

Completed in 25 milliseconds

123