Home
last modified time | relevance | path

Searched refs:dist2 (Results 1 – 25 of 31) sorted by relevance

12

/external/libaom/av1/encoder/x86/
Dav1_k_means_sse2.c53 const __m128i dist2 = _mm_unpackhi_epi32(dist[0], v_zero); in av1_calc_indices_dim1_sse2() local
55 sum = _mm_add_epi64(sum, dist2); in av1_calc_indices_dim1_sse2()
90 __m128i dist2 = _mm_and_si128(cmp, dist[j]); in av1_calc_indices_dim2_sse2() local
91 dist[0] = _mm_or_si128(dist1, dist2); in av1_calc_indices_dim2_sse2()
100 const __m128i dist2 = _mm_unpackhi_epi32(dist[0], v_zero); in av1_calc_indices_dim2_sse2() local
102 sum = _mm_add_epi64(sum, dist2); in av1_calc_indices_dim2_sse2()
Dav1_k_means_avx2.c61 const __m256i dist2 = _mm256_unpackhi_epi32(dist[0], v_zero); in av1_calc_indices_dim1_avx2() local
63 sum = _mm256_add_epi64(sum, dist2); in av1_calc_indices_dim1_avx2()
110 const __m256i dist2 = _mm256_unpackhi_epi32(dist[0], v_zero); in av1_calc_indices_dim2_avx2() local
112 sum = _mm256_add_epi64(sum, dist2); in av1_calc_indices_dim2_avx2()
/external/eigen/Eigen/src/Geometry/
DAlignedBox.h411 Scalar dist2(0); in squaredExteriorDistance()
418 dist2 += aux*aux; in squaredExteriorDistance()
423 dist2 += aux*aux; in squaredExteriorDistance()
426 return dist2; in squaredExteriorDistance()
432 Scalar dist2(0); in squaredExteriorDistance()
439 dist2 += aux*aux; in squaredExteriorDistance()
444 dist2 += aux*aux; in squaredExteriorDistance()
447 return dist2; in squaredExteriorDistance()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c1343 float dx, dy, dist2, cover; in sp_setup_point() local
1349 dist2 = dx * dx + dy * dy; in sp_setup_point()
1350 if (dist2 <= rmax2) { in sp_setup_point()
1351 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point()
1358 dist2 = dx * dx + dy * dy; in sp_setup_point()
1359 if (dist2 <= rmax2) { in sp_setup_point()
1360 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point()
1367 dist2 = dx * dx + dy * dy; in sp_setup_point()
1368 if (dist2 <= rmax2) { in sp_setup_point()
1369 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point()
[all …]
/external/libjpeg-turbo/
Djquant2.c301 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()
/external/mesa3d/src/mesa/swrast/
Ds_points.c328 const GLfloat dist2 = dx * dx + dy * dy; in smooth_point() local
331 if (dist2 < rmax2) { in smooth_point()
332 if (dist2 >= rmin2) { in smooth_point()
334 coverage = 1.0F - (dist2 - rmin2) * cscale; in smooth_point()
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_lib_test.py258 dist2 = _TestStrategy()
270 ds_context.experimental_set_strategy(dist2)
271 self.assertIs(dist2, ds_context.get_strategy())
306 dist2 = _TestStrategy()
307 scope2 = dist2.scope()
/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2Cap.java209 double dist2 = S2Point.sub(axis, p).norm2(); in addPoint() local
210 double newHeight = Math.max(height, ROUND_UP * 0.5 * dist2); in addPoint()
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Ddirichlet_multinomial_test.py215 dist2 = ds.DirichletMultinomial(2., alpha)
218 mean2 = dist2.mean().eval()
349 dist2 = ds.DirichletMultinomial(ns2, alpha2)
352 covariance2 = dist2.covariance()
Dmultinomial_test.py252 dist2 = multinomial.Multinomial(ns2, p2)
255 covariance2 = dist2.covariance()
Dbeta_test.py383 for dist2 in [d2, d2_sp]:
384 kl = kullback_leibler.kl_divergence(dist1, dist2)
/external/skia/tests/
DPathOpsAngleIdeas.cpp793 double dist2 = v2.length() * m; in mDistance() local
797 endCtrlRatio(q1), endCtrlRatio(q2), m, dist1, dist2, dir > 0 ? '+' : '-', in mDistance()
802 bool use1 = fabs(dist1) < fabs(dist2); in mDistance()
804 SkDebugf("%c dist=%1.9g r=%1.9g\n", agrees ? 'T' : 'F', use1 ? dist1 : dist2, in mDistance()
805 use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
807 return fabs(use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
/external/freetype/src/autofit/
Dafcjk.c1076 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local
1086 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges()
1087 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges()
1093 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges()
2061 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local
2078 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges()
2080 span = dist1 - dist2; in af_cjk_hint_edges()
Daflatin.c3362 FT_Pos dist1, dist2, span, delta; in af_latin_hint_edges() local
3379 dist2 = edge3->opos - edge2->opos; in af_latin_hint_edges()
3381 span = dist1 - dist2; in af_latin_hint_edges()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleDistanceTest.java104 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming() local
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleDistanceTest.java107 … int dist2 = localeDistance.testOnlyDistance(supported, desired, 1000, FavorSubtag.LANGUAGE); in testTiming() local
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp353 std::binomial_distribution<unsigned> dist2(5, 0.1); in test8() local
357 unsigned r2 = dist2(gen2); in test8()
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DXLocaleDistanceTest.java97 … int dist2 = localeMatcher.distanceRaw(supportedLSR, desiredLSR, 1000, DistanceOption.NORMAL); in testTiming() local
/external/cronet/buildtools/third_party/libc++/trunk/test/std/numerics/rand/rand.dist/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp348 std::binomial_distribution<UnsignedT> dist2(5, 0.1); in test8() local
352 UnsignedT r2 = dist2(gen2); in test8()
/external/mesa3d/src/imgui/
Dimstb_truetype.h4485 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 …]
/external/libexif/po/
DMakefile.in.in290 @$(MAKE) dist2
292 dist2: $(DISTFILES)
/external/e2fsprogs/po/
DMakefile.in.in405 @$(MAKE) dist2
407 dist2: stamp-po $(DISTFILES)
/external/skia/src/core/
DSkStroke.cpp932 SkScalar dist2 = pt_to_line(end, start, quadPts->fTangentStart); in intersectRay() local
933 if (std::max(dist1, dist2) <= fInvResScaleSquared) { in intersectRay()
935 "std::max(dist1=%g, dist2=%g) <= fInvResScaleSquared", dist1, dist2); in intersectRay()
/external/lzma/Asm/x86/
DLzmaDecOpt.asm75 ; x9 match (MATCHED) / sym2 / dist2 / lpMask_reg
140 dist2 equ x9 define
/external/lzma/C/
DLzmaEnc.c1924 UInt32 dist2; in GetOptimumFast() local
1927 dist2 = p->matches[(size_t)numPairs - 3]; in GetOptimumFast()
1928 if (!ChangePair(dist2, mainDist)) in GetOptimumFast()
1932 mainDist = dist2; in GetOptimumFast()

12