/third_party/benchmark/src/ |
D | check.h | 82 #define BM_CHECK_FLOAT_EQ(a, b, eps) BM_CHECK(std::fabs((a) - (b)) < (eps)) argument 83 #define BM_CHECK_FLOAT_NE(a, b, eps) BM_CHECK(std::fabs((a) - (b)) >= (eps)) argument 84 #define BM_CHECK_FLOAT_GE(a, b, eps) BM_CHECK((a) - (b) > -(eps)) argument 85 #define BM_CHECK_FLOAT_LE(a, b, eps) BM_CHECK((b) - (a) > -(eps)) argument 86 #define BM_CHECK_FLOAT_GT(a, b, eps) BM_CHECK((a) - (b) > (eps)) argument 87 #define BM_CHECK_FLOAT_LT(a, b, eps) BM_CHECK((b) - (a) > (eps)) argument
|
/third_party/skia/third_party/externals/angle2/scripts/ |
D | generate_entry_points.py | 1855 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.defs), [all …]
|
/third_party/vk-gl-cts/framework/randomshaders/ |
D | rsgBinaryOps.cpp | 513 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 = T(0.001); in operator ()() local 568 DE_ASSERT(de::inRange(aMin+bMin, dstMin-eps, dstMax+eps)); in operator ()() 569 DE_ASSERT(de::inRange(aMin+bMax, dstMin-eps, dstMax+eps)); in operator ()() 570 DE_ASSERT(de::inRange(aMax+bMin, dstMin-eps, dstMax+eps)); in operator ()() 571 DE_ASSERT(de::inRange(aMax+bMax, dstMin-eps, dstMax+eps)); in operator ()() [all …]
|
/third_party/python/Lib/test/test_importlib/ |
D | test_metadata_api.py | 77 eps = entry_points() 78 assert 'entries' in eps.groups 79 entries = eps.select(group='entries') 130 eps = dict(entry_points(group='entries')) 132 assert 'main' in eps 133 assert eps['main'] == entry_points(group='entries')['main'] 147 eps = distribution('distinfo-pkg').entry_points 149 eps[0]
|
/third_party/flutter/skia/third_party/externals/sdl/src/audio/ |
D | SDL_audiotypecvt.c | 2304 register int eps = 0; in SDL_Upsample_U8_1c() local 2313 eps += srcsize; in SDL_Upsample_U8_1c() 2314 if ((eps << 1) >= dstsize) { in SDL_Upsample_U8_1c() 2318 eps -= dstsize; in SDL_Upsample_U8_1c() 2336 register int eps = 0; in SDL_Downsample_U8_1c() local 2344 eps += dstsize; in SDL_Downsample_U8_1c() 2345 if ((eps << 1) >= srcsize) { in SDL_Downsample_U8_1c() 2350 eps -= srcsize; in SDL_Downsample_U8_1c() 2368 register int eps = 0; in SDL_Upsample_U8_2c() local 2380 eps += srcsize; in SDL_Upsample_U8_2c() [all …]
|
/third_party/jerryscript/tests/jerry-test-suite/11/11.04/11.04.04/ |
D | 11.04.04-006.js | 16 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/ |
D | 11.04.05-006.js | 15 var eps = 0.000000001; variable 18 assert(--a >= 0.12 - eps && 19 a <= 0.12 + eps)
|
/third_party/jerryscript/tests/jerry-test-suite/11/11.09/11.09.04/ |
D | 11.09.04-016.js | 15 var x = 123.00, y = 0.0123e+4, eps = .00001 variable 16 assert(x <= y + eps && x >= y - eps)
|
/third_party/jerryscript/tests/jerry-test-suite/11/11.09/11.09.05/ |
D | 11.09.05-016.js | 15 var x = 123.00, y = 0.0123e+4, eps = .00001 variable 16 assert(x <= y + eps && x >= y - eps)
|
/third_party/ffmpeg/tests/checkasm/ |
D | checkasm.c | 327 int float_near_abs_eps(float a, float b, float eps) in float_near_abs_eps() argument 330 if (abs_diff < eps) in float_near_abs_eps() 333 …rintf(stderr, "test failed comparing %g with %g (abs diff=%g with EPS=%g)\n", a, b, abs_diff, eps); in float_near_abs_eps() 338 int float_near_abs_eps_array(const float *a, const float *b, float eps, in float_near_abs_eps_array() argument 344 if (!float_near_abs_eps(a[i], b[i], eps)) in float_near_abs_eps_array() 350 int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp) in float_near_abs_eps_ulp() argument 352 return float_near_ulp(a, b, max_ulp) || float_near_abs_eps(a, b, eps); in float_near_abs_eps_ulp() 355 int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps, in float_near_abs_eps_array_ulp() argument 361 if (!float_near_abs_eps_ulp(a[i], b[i], eps, max_ulp)) in float_near_abs_eps_array_ulp() 367 int double_near_abs_eps(double a, double b, double eps) in double_near_abs_eps() argument [all …]
|
D | checkasm.h | 104 int float_near_abs_eps(float a, float b, float eps); 105 int float_near_abs_eps_ulp(float a, float b, float eps, unsigned max_ulp); 108 int float_near_abs_eps_array(const float *a, const float *b, float eps, 110 int float_near_abs_eps_array_ulp(const float *a, const float *b, float eps, 112 int double_near_abs_eps(double a, double b, double eps); 113 int double_near_abs_eps_array(const double *a, const double *b, double eps,
|
/third_party/musl/libc-test/src/math/ |
D | isless.c | 33 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/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageMisalignedCubeTests.cpp | 166 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 || d… in iterate() 274 …if (deFloatAbs(delta.x()) > eps || deFloatAbs(delta.y()) > eps || deFloatAbs(delta.z()) > eps || d… in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
D | vktImageMisalignedCubeTests.cpp | 166 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 || d… in iterate() 274 …if (deFloatAbs(delta.x()) > eps || deFloatAbs(delta.y()) > eps || deFloatAbs(delta.z()) > eps || d… in iterate()
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
D | f_generic.c | 409 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() 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[i].descs[1]; in generic_eps_alloc() 476 priv->eps[i].ep = ep; in generic_eps_alloc() [all …]
|
/third_party/glslang/Test/ |
D | coord_conventions.frag | 15 const float eps=0.001; 31 if (abs(diff.z)>eps) 33 if (abs(diff.w)>eps)
|
D | gl_FragCoord.frag | 14 const float eps=0.001; 29 if (abs(diff.z)>eps) myColor.b = 0.5; 30 if (abs(diff.w)>eps) myColor.a = 0.5;
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | DepthStencilFormatsTest.cpp | 461 const GLfloat eps = 0.002; in TEST_P() local 473 expectedMin[i] = expectedMin[i] - eps; in TEST_P() 474 expectedMax[i] = expectedMax[i] + eps; in TEST_P() 480 d00 - eps, d00, d00, d10 - eps, d00, d00, d00, d10, in TEST_P() 481 d00, d00, d00, d10, d01 - eps, d01, d01, d11 - eps, in TEST_P() 484 d00 + eps, d10, d10, d10 + eps, d01, d11, d11, d11, in TEST_P() 485 d01, d11, d11, d11, d01 + eps, d11, d11, d11 + eps, in TEST_P()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_main.c | 262 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()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | DepthStencilFormatsTest.cpp | 695 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, d11, d11, d11 + eps, in TEST_P()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderCommonFunctionTests.cpp | 648 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() local 1214 const int minRes = int(in0-eps); in compare() 1215 const int maxRes = int(in0+eps); in compare() 1336 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare() local [all …]
|
/third_party/musl/porting/liteos_a/kernel/src/math/ |
D | exp2l.c | 404 static const float eps[TBLSIZE] = { variable 613 z -= eps[i0]; in exp2l()
|
/third_party/musl/src/math/ |
D | exp2l.c | 404 static const float eps[TBLSIZE] = { variable 613 z -= eps[i0]; in exp2l()
|
/third_party/python/Lib/importlib/metadata/ |
D | __init__.py | 427 def load(cls, eps): argument 429 ordered = sorted(eps, key=by_group) 431 return cls((group, EntryPoints(eps)) for group, eps in grouped) 977 eps = itertools.chain.from_iterable( 980 return SelectableGroups.load(eps).select(**params)
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderCommonFunctionTests.cpp | 723 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() local 1294 const int minRes = int(in0-eps); in compare() 1295 const int maxRes = int(in0+eps); in compare() 1416 const float eps = getEpsFromBits(1.0f, mantissaBits); // epsilon for rounding bounds in compare() local [all …]
|