Home
last modified time | relevance | path

Searched refs:dist1 (Results 1 – 25 of 42) sorted by relevance

12

/third_party/boost/libs/math/test/
Dnorms_test.cpp219 Real dist1 = lp_distance(u, v, 7); in test_lp_distance() local
222 BOOST_TEST(abs(dist1 - dist2) < tol*dist1); in test_lp_distance()
242 Real dist1 = lp_distance(u, v, 7); in test_complex_lp_distance() local
245 BOOST_TEST(abs(dist1 - dist2) < tol*dist1); in test_complex_lp_distance()
265 double dist1 = lp_distance(v, s, 7); in test_integer_lp_distance() local
267 BOOST_TEST(abs(dist1 - dist2) < tol*dist2); in test_integer_lp_distance()
568 Real dist1 = l1_distance(v, w); in test_l1_distance() local
570 BOOST_TEST(abs(dist1 - dist2) < tol*dist1); in test_l1_distance()
590 double dist1 = l1_distance(v, w); in test_integer_l1_distance() local
592 BOOST_TEST(abs(dist1 - dist2) < tol*dist1); in test_integer_l1_distance()
[all …]
/third_party/skia/third_party/externals/tint/test/vk-gl-cts/graphicsfuzz/cov-apfloat-tanh/
D0-opt.spvasm9 OpName %dist1 "dist1"
39 %dist1 = OpVariable %_ptr_Function_float Function
50 OpStore %dist1 %37
55 %41 = OpLoad %float %dist1
D0-opt.wgsl5 var dist1 : f32;
11 dist1 = distance(tanh(x_30), (sinh(x_32) / cosh(x_34)));
14 let x_41 : f32 = dist1;
/third_party/ffmpeg/libavcodec/
Daacenc_is.c45 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_is_encoding_err() local
67 dist1 += quantize_band_cost(s, &L[start + (w+w2)*128], L34, in ff_aac_is_encoding_err()
72 dist1 += quantize_band_cost(s, &R[start + (w+w2)*128], R34, 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()
91 is_error.dist1 = dist1; in ff_aac_is_encoding_err()
Daacenc_is.h40 float dist1; /* From original coeffs */ member
Daacenc_ltp.c183 float dist1 = 0.0f, dist2 = 0.0f; in ff_aac_search_for_ltp() local
195dist1 += quantize_band_cost(s, &sce->coeffs[start+(w+w2)*128], C34, sce->ics.swb_sizes[g], in ff_aac_search_for_ltp()
205 if (dist2 < dist1 && bits2 < bits1) { in ff_aac_search_for_ltp()
Daaccoder.c586 float dist1 = 0.0f, dist2 = 0.0f, noise_amp; in search_for_pns() local
657 dist1 += quantize_band_cost(s, &sce->coeffs[start_c], 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
841 dist1 += quantize_band_cost(s, &sce0->coeffs[start + (w+w2)*128], in search_for_ms()
847 dist1 += quantize_band_cost(s, &sce1->coeffs[start + (w+w2)*128], in search_for_ms()
867 dist1 -= b1+b2; in search_for_ms()
870 cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0; in search_for_ms()
Daacenc_pred.c259 float dist1, dist2, dist_spec_err = 0.0f; in ff_aac_search_for_pred() local
274 dist1 = quantize_and_encode_band_cost(s, NULL, &sce->coeffs[start_coef], NULL, in ff_aac_search_for_pred()
307 if (dist2 <= dist1 && cb_p <= cb_n) { in ff_aac_search_for_pred()
/third_party/boost/libs/multiprecision/test/
Dtest_mpfi.cpp65 uniform_real_distribution<mpfr_float_50> dist1(0, 400); in test_pow() local
70 base = dist1(gen); in test_pow()
71 p = dist1(gen); in test_pow()
91 uniform_real_distribution<mpfr_float_50> dist1(-1.57079632679, 1.57079632679); in test_trig() local
97 val = dist1(gen); in test_trig()
145 uniform_real_distribution<mpfr_float_50> dist1(-10, 10); in test_hyp() local
151 val = dist1(gen); in test_hyp()
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DLzcompCompress.java146 int[] dist1 = new int[1]; in makeCopyDecision() local
150 int len1 = findMatch(index, dist1, gain1, costPerByte1); in makeCopyDecision()
169 int distRanges = getNumDistRanges(dist1[0] + 1); in makeCopyDecision()
170 int lenBitCount = encodeLengthCost(len1 - 1, dist1[0] + 1, distRanges); in makeCopyDecision()
171 int distBitCount = encodeDistance2Cost(dist1[0] + 1, distRanges); in makeCopyDecision()
176 dist1[0]++; in makeCopyDecision()
195 bestDist[0] = dist1[0]; in makeCopyDecision()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DLzcompCompress.java146 int[] dist1 = new int[1]; in makeCopyDecision() local
150 int len1 = findMatch(index, dist1, gain1, costPerByte1); in makeCopyDecision()
169 int distRanges = getNumDistRanges(dist1[0] + 1); in makeCopyDecision()
170 int lenBitCount = encodeLengthCost(len1 - 1, dist1[0] + 1, distRanges); in makeCopyDecision()
171 int distBitCount = encodeDistance2Cost(dist1[0] + 1, distRanges); in makeCopyDecision()
176 dist1[0]++; in makeCopyDecision()
195 bestDist[0] = dist1[0]; in makeCopyDecision()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djquant2.c301 JLONG dist0, dist1, dist2; in update_box() local
384 dist1 = ((c1max - c1min) << C1_SHIFT) * C1_SCALE; in update_box()
386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box()
767 JLONG dist0, dist1; /* initial distance values */ in find_best_colors() local
808 dist1 = dist0; in find_best_colors()
811 dist2 = dist1; in find_best_colors()
823 dist1 += xx1; in find_best_colors()
/third_party/libjpeg-turbo/
Djquant2.c301 JLONG dist0, dist1, dist2; in update_box() local
384 dist1 = ((c1max - c1min) << C1_SHIFT) * C1_SCALE; in update_box()
386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box()
767 JLONG dist0, dist1; /* initial distance values */ in find_best_colors() local
808 dist1 = dist0; in find_best_colors()
811 dist2 = dist1; in find_best_colors()
823 dist1 += xx1; in find_best_colors()
/third_party/skia/third_party/externals/libjpeg-turbo/
Djquant2.c301 JLONG dist0, dist1, dist2; in update_box() local
384 dist1 = ((c1max - c1min) << C1_SHIFT) * C1_SCALE; in update_box()
386 boxp->volume = dist0 * dist0 + dist1 * dist1 + dist2 * dist2; in update_box()
767 JLONG dist0, dist1; /* initial distance values */ in find_best_colors() local
808 dist1 = dist0; in find_best_colors()
811 dist2 = dist1; in find_best_colors()
823 dist1 += xx1; in find_best_colors()
/third_party/flutter/skia/tests/
DPathOpsAngleIdeas.cpp779 double dist1 = v1.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/
DPathOpsAngleIdeas.cpp776 double dist1 = v1.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/skia/tools/viewer/
DTouchGesture.cpp318 double dist1 = sqrt(dx*dx + dy*dy); in computePinch() local
320 double scale = dist1 / dist0; in computePinch()
/third_party/flutter/skia/tools/viewer/
DTouchGesture.cpp321 double dist1 = sqrt(dx*dx + dy*dy); in computePinch() local
323 double scale = dist1 / dist0; in computePinch()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleDistanceTest.java103 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming() local
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DLocaleDistanceTest.java106 … int dist1 = localeDistance.testOnlyDistance(desired, supported, 1000, FavorSubtag.LANGUAGE); in testTiming() local
/third_party/quickjs/
Djscompress.c695 int i, dist, len, len1, dist1; in lz_compress() local
731 len1 = find_longest_match(&dist1, src, src_len, hash_next, i + 1); in lz_compress()
/third_party/boost/boost/polygon/detail/
Dvoronoi_predicates.hpp242 fpt_type dist1 = find_distance_to_point_arc(left_site, new_point); in pp() local
246 return dist1 < dist2; in pp()
257 fpt_type dist1 = find_distance_to_point_arc(left_site, new_point); in ps() local
261 return reverse_order ^ (dist1 < dist2); in ps()
273 fpt_type dist1 = find_distance_to_segment_arc(left_site, new_point); in ss() local
277 return dist1 < dist2; in ss()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_tri.c401 float dist1 = v1[0][0] * v1[0][0] + v1[0][1] * v1[0][1]; in do_triangle_ccw() local
403 if (dist0 > dist1 && dist1 < dist2) { in do_triangle_ccw()
/third_party/ffmpeg/libavcodec/mips/
Daaccoder_mips.c2383 float dist1 = 0.0f, dist2 = 0.0f; in search_for_ms_mips() local
2422 dist1 += quantize_band_cost(s, &sce0->coeffs[start + (w+w2)*128], in search_for_ms_mips()
2428 dist1 += quantize_band_cost(s, &sce1->coeffs[start + (w+w2)*128], in search_for_ms_mips()
2448 dist1 -= b1+b2; in search_for_ms_mips()
2451 cpe->ms_mask[w*16+g] = dist2 <= dist1 && B1 < B0; in search_for_ms_mips()
/third_party/freetype/src/autofit/
Dafcjk.c2074 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local
2090 dist1 = edge2->opos - edge1->opos; in af_cjk_hint_edges()
2093 span = dist1 - dist2; in af_cjk_hint_edges()

12