/third_party/skia/third_party/externals/tint/test/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/ |
D | 0-opt.spvasm | 10 OpName %dist2 "dist2" 40 %dist2 = OpVariable %_ptr_Function_float Function 54 OpStore %dist2 %40 57 %43 = OpLoad %float %dist2
|
D | 0-opt.wgsl | 6 var dist2 : f32; 13 dist2 = distance(tanh(x_38), vec4<f32>(0.761590004, 0.964030027, 0.995050013, 0.999329984)); 15 let x_43 : f32 = dist2;
|
/third_party/ffmpeg/libavcodec/ |
D | aacenc_is.c | 45 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_is_encoding_err() local 77 dist2 += quantize_band_cost(s, IS, I34, sce0->ics.swb_sizes[g], in ff_aac_is_encoding_err() 85 dist2 += dist_spec_err; in ff_aac_is_encoding_err() 88 is_error.pass = dist2 <= dist1; in ff_aac_is_encoding_err() 90 is_error.error = dist2 - dist1; in ff_aac_is_encoding_err() 92 is_error.dist2 = dist2; in ff_aac_is_encoding_err()
|
D | aaccoder.c | 586 float dist1 = 0.0f, dist2 = 0.0f, noise_amp; in search_for_pns() local 664 … dist2 += band->energy/(band->spread*band->spread)*lambda*dist_thresh/band->threshold; in search_for_pns() 667 dist2 += 5; in search_for_pns() 669 dist2 += 9; in search_for_pns() 673 …+g] || !sce->band_alt[w*16+g] || (energy_ratio > 0.85f && energy_ratio < 1.25f && dist2 < dist1)) { in search_for_pns() 802 float dist1 = 0.0f, dist2 = 0.0f; in search_for_ms() local 853 dist2 += quantize_band_cost(s, M, in search_for_ms() 859 dist2 += quantize_band_cost(s, S, in search_for_ms() 868 dist2 -= b3+b4; in search_for_ms() 870 cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0; in search_for_ms()
|
D | aacenc_pred.c | 259 float dist1, dist2, dist_spec_err = 0.0f; in ff_aac_search_for_pred() local 299 dist2 = quantize_and_encode_band_cost(s, NULL, &sce->prcoeffs[start_coef], NULL, in ff_aac_search_for_pred() 305 dist2 += dist_spec_err; in ff_aac_search_for_pred() 307 if (dist2 <= dist1 && cb_p <= cb_n) { in ff_aac_search_for_pred()
|
D | aacenc_ltp.c | 183 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_search_for_ltp() local 198 dist2 += quantize_band_cost(s, PCD, PCD34, sce->ics.swb_sizes[g], in ff_aac_search_for_ltp() 205 if (dist2 < dist1 && bits2 < bits1) { in ff_aac_search_for_ltp()
|
D | texturedspenc.c | 502 int dist, bias, dist4, dist2; in compress_alpha() local 536 dist2 = dist * 2; in compress_alpha() 552 tmp = (alp >= dist2) ? -1 : 0; in compress_alpha() 554 alp -= dist2 & tmp; in compress_alpha()
|
D | aacenc_is.h | 41 float dist2; /* From IS'd coeffs */ member
|
/third_party/gstreamer/gstplugins_good/gst/goom/ |
D | tentacle3d.c | 229 pretty_move (PluginInfo * goomInfo, float cycle, float *dist, float *dist2, in pretty_move() argument 247 *dist2 = fx_data->distt2 = (tmp + 15.0f * fx_data->distt2) / 16.0f; in pretty_move() 294 float dist, dist2, rotangle; in tentacle_update() local 332 pretty_move (goomInfo, fx_data->cycle, &dist, &dist2, &rotangle, fx_data); in tentacle_update() 343 grid3d_update (fx_data->grille[tmp], rotangle, fx_data->vals, dist2); in tentacle_update() 353 pretty_move (goomInfo, fx_data->cycle, &dist, &dist2, &rotangle, fx_data); in tentacle_update()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_setup.c | 1263 float dx, dy, dist2, cover; in sp_setup_point() local 1269 dist2 = dx * dx + dy * dy; in sp_setup_point() 1270 if (dist2 <= rmax2) { in sp_setup_point() 1271 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point() 1278 dist2 = dx * dx + dy * dy; in sp_setup_point() 1279 if (dist2 <= rmax2) { in sp_setup_point() 1280 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point() 1287 dist2 = dx * dx + dy * dy; in sp_setup_point() 1288 if (dist2 <= rmax2) { in sp_setup_point() 1289 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point() [all …]
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | jquant2.c | 301 JLONG dist0, dist1, dist2; in update_box() local 385 dist2 = ((c2max - c2min) << C2_SHIFT) * C2_SCALE; in update_box() 386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box() 768 register JLONG dist2; /* current distance in inner loop */ in find_best_colors() local 811 dist2 = dist1; in find_best_colors() 814 if (dist2 < *bptr) { in find_best_colors() 815 *bptr = dist2; in find_best_colors() 818 dist2 += xx2; in find_best_colors()
|
/third_party/libjpeg-turbo/ |
D | jquant2.c | 301 JLONG dist0, dist1, dist2; in update_box() local 385 dist2 = ((c2max - c2min) << C2_SHIFT) * C2_SCALE; in update_box() 386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box() 768 register JLONG dist2; /* current distance in inner loop */ in find_best_colors() local 811 dist2 = dist1; in find_best_colors() 814 if (dist2 < *bptr) { in find_best_colors() 815 *bptr = dist2; in find_best_colors() 818 dist2 += xx2; in find_best_colors()
|
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/ |
D | jquant2.c | 301 JLONG dist0, dist1, dist2; in update_box() local 385 dist2 = ((c2max - c2min) << C2_SHIFT) * C2_SCALE; in update_box() 386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box() 768 register JLONG dist2; /* current distance in inner loop */ in find_best_colors() local 811 dist2 = dist1; in find_best_colors() 814 if (dist2 < *bptr) { in find_best_colors() 815 *bptr = dist2; in find_best_colors() 818 dist2 += xx2; in find_best_colors()
|
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | LzcompCompress.java | 153 int[] dist2 = new int[1]; in makeCopyDecision() local 156 int len2 = findMatch(index, dist2, gain2, costPerByte2); in makeCopyDecision() 162 len2 = findMatch(here + len1, dist2, gain2, costPerByte2); in makeCopyDecision()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | LzcompCompress.java | 153 int[] dist2 = new int[1]; in makeCopyDecision() local 156 int len2 = findMatch(index, dist2, gain2, costPerByte2); in makeCopyDecision() 162 len2 = findMatch(here + len1, dist2, gain2, costPerByte2); in makeCopyDecision()
|
/third_party/flutter/skia/tests/ |
D | PathOpsAngleIdeas.cpp | 780 double dist2 = v2.length() * m; in mDistance() local 784 endCtrlRatio(q1), endCtrlRatio(q2), m, dist1, dist2, dir > 0 ? '+' : '-', in mDistance() 789 bool use1 = fabs(dist1) < fabs(dist2); in mDistance() 791 SkDebugf("%c dist=%1.9g r=%1.9g\n", agrees ? 'T' : 'F', use1 ? dist1 : dist2, in mDistance() 792 use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance() 794 return fabs(use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
|
/third_party/skia/tests/ |
D | PathOpsAngleIdeas.cpp | 777 double dist2 = v2.length() * m; in mDistance() local 781 endCtrlRatio(q1), endCtrlRatio(q2), m, dist1, dist2, dir > 0 ? '+' : '-', in mDistance() 786 bool use1 = fabs(dist1) < fabs(dist2); in mDistance() 788 SkDebugf("%c dist=%1.9g r=%1.9g\n", agrees ? 'T' : 'F', use1 ? dist1 : dist2, in mDistance() 789 use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance() 791 return fabs(use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
|
/third_party/freetype/src/autofit/ |
D | afcjk.c | 1074 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local 1084 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges() 1085 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 1091 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 2057 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local 2074 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges() 2076 span = dist1 - dist2; in af_cjk_hint_edges()
|
/third_party/flutter/skia/third_party/externals/freetype/src/autofit/ |
D | afcjk.c | 1081 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local 1091 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges() 1092 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 1098 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 2075 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local 2092 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges() 2094 span = dist1 - dist2; in af_cjk_hint_edges()
|
/third_party/skia/third_party/externals/freetype/src/autofit/ |
D | afcjk.c | 1074 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local 1084 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges() 1085 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 1091 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges() 2057 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local 2074 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges() 2076 span = dist1 - dist2; in af_cjk_hint_edges()
|
/third_party/mtdev/src/ |
D | common.h | 65 static inline int dist2(int dx, int dy) in dist2() function
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleDistanceTest.java | 104 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming() local
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | LocaleDistanceTest.java | 107 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming() local
|
/third_party/skia/third_party/externals/imgui/ |
D | imstb_truetype.h | 4485 float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); in stbtt_GetGlyphSDF() local 4486 if (dist2 < min_dist*min_dist) in stbtt_GetGlyphSDF() 4487 min_dist = (float) STBTT_sqrt(dist2); in stbtt_GetGlyphSDF() 4553 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); in stbtt_GetGlyphSDF() 4554 if (dist2 < min_dist * min_dist) in stbtt_GetGlyphSDF() 4555 min_dist = (float) STBTT_sqrt(dist2); in stbtt_GetGlyphSDF() 4561 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); in stbtt_GetGlyphSDF() 4562 if (dist2 < min_dist * min_dist) in stbtt_GetGlyphSDF() 4563 min_dist = (float) STBTT_sqrt(dist2); in stbtt_GetGlyphSDF() 4569 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); in stbtt_GetGlyphSDF() [all …]
|
/third_party/mesa3d/src/imgui/ |
D | imstb_truetype.h | 4485 float dist2 = (x0-sx)*(x0-sx) + (y0-sy)*(y0-sy); in stbtt_GetGlyphSDF() local 4486 if (dist2 < min_dist*min_dist) in stbtt_GetGlyphSDF() 4487 min_dist = (float) STBTT_sqrt(dist2); in stbtt_GetGlyphSDF() 4553 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); in stbtt_GetGlyphSDF() 4554 if (dist2 < min_dist * min_dist) in stbtt_GetGlyphSDF() 4555 min_dist = (float) STBTT_sqrt(dist2); in stbtt_GetGlyphSDF() 4561 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); in stbtt_GetGlyphSDF() 4562 if (dist2 < min_dist * min_dist) in stbtt_GetGlyphSDF() 4563 min_dist = (float) STBTT_sqrt(dist2); in stbtt_GetGlyphSDF() 4569 dist2 = (px-sx)*(px-sx) + (py-sy)*(py-sy); in stbtt_GetGlyphSDF() [all …]
|