Home
last modified time | relevance | path

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

12

/external/speex/libspeex/
Dvq_arm4.h42 spx_word32_t dist1, dist2, dist3, dist4; in vq_nbest() local
65 : "=r" (dist1), "=r" (dist2), "=r" (dist3), "=r" (dist4), in vq_nbest()
71 dist1=dist2=dist3=dist4=0; in vq_nbest()
81 dist2 = MAC16_16(dist2,in[j],*code); in vq_nbest()
95 dist2=SUB32(SHR(*E++,1),dist2); in vq_nbest()
96 if (dist2<*best_dist) in vq_nbest()
98 *best_dist=dist2; in vq_nbest()
/external/autotest/client/deps/glbench/src/
Dwindowmanagertest.cc42 float dist2 = dx*dx + dy*dy; in CreateBitmap() local
43 if (dist2 > 1.f) in CreateBitmap()
44 dist2 = 1.f; in CreateBitmap()
45 *pixel = (1.f - dist2) * 255.f; in CreateBitmap()
47 *pixel = (1.f - dist2) * 255.f; in CreateBitmap()
49 *pixel = (1.f - dist2) * 255.f; in CreateBitmap()
/external/eigen/Eigen/src/Geometry/
DAlignedBox.h317 Scalar dist2(0); in squaredExteriorDistance()
324 dist2 += aux*aux; in squaredExteriorDistance()
329 dist2 += aux*aux; in squaredExteriorDistance()
332 return dist2; in squaredExteriorDistance()
338 Scalar dist2(0); in squaredExteriorDistance()
345 dist2 += aux*aux; in squaredExteriorDistance()
350 dist2 += aux*aux; in squaredExteriorDistance()
353 return dist2; in squaredExteriorDistance()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/NarrowPhaseCollision/
DbtSubSimplexConvexCast.cpp74 btScalar dist2 = v.length2(); in calcTimeOfImpact() local
83 while ( (dist2 > epsilon) && maxIter--) in calcTimeOfImpact()
123 dist2 = v.length2(); in calcTimeOfImpact()
132 dist2 = btScalar(0.); in calcTimeOfImpact()
DbtMprPenetration.h667 float s, t, dist, dist2; in btMprVec3PointTriDist2() local
716 dist2 = _btMprVec3PointSegmentDist2(P, x0, C, &witness2); in btMprVec3PointTriDist2()
717 if (dist2 < dist){ in btMprVec3PointTriDist2()
718 dist = dist2; in btMprVec3PointTriDist2()
723 dist2 = _btMprVec3PointSegmentDist2(P, B, C, &witness2); in btMprVec3PointTriDist2()
724 if (dist2 < dist){ in btMprVec3PointTriDist2()
725 dist = dist2; in btMprVec3PointTriDist2()
/external/eigen/Eigen/src/Eigen2Support/Geometry/
DAlignedBox.h147 Scalar dist2(0); in squaredExteriorDistance()
152 dist2 += aux*aux; in squaredExteriorDistance()
154 dist2 += aux*aux; in squaredExteriorDistance()
156 return dist2; in squaredExteriorDistance()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/classical/
Dmain.fragment.glsl182 float dist2 = dot(lightDir, lightDir);
183 lightDir *= inversesqrt(dist2);
185 float falloff = clamp(u_spotLights[i].intensity / (1.0 + dist2), 0.0, 2.0);
208 float dist2 = dot(lightDir, lightDir);
209 lightDir *= inversesqrt(dist2);
211 float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0);
Dpass2.fragment.glsl158 float dist2 = dot(lightDir, lightDir);
159 lightDir *= inversesqrt(dist2);
161 float falloff = clamp(u_lightIntensity / (1.0 + dist2), 0.0, 2.0);
/external/libgdx/tests/gdx-tests-android/assets/data/g3d/shaders/
Dlight_gouraud.glsl79 float dist2 = dot(lightDir, lightDir);
80 lightDir *= inversesqrt(dist2);
82 …float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0); // FIXME mul intensit…
94 float dist2 = dot(lightDir, lightDir);
95 lightDir *= inversesqrt(dist2);
97 …float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0); // FIXME mul intensit…
Dmrtscene.frag54 float dist2 = dot(lightDir, lightDir);
55 lightDir *= inversesqrt(dist2);
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/realistic/
Dmain.fragment.glsl227 float dist2 = dot(lightDir, lightDir);
228 lightDir *= inversesqrt(dist2);
230 float falloff = clamp(u_spotLights[i].intensity / (1.0 + dist2), 0.0, 2.0);
253 float dist2 = dot(lightDir, lightDir);
254 lightDir *= inversesqrt(dist2);
256 float falloff = clamp(u_pointLights[i].intensity / (1.0 + dist2), 0.0, 2.0);
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_setup.c1300 float dx, dy, dist2, cover; in sp_setup_point() local
1306 dist2 = dx * dx + dy * dy; in sp_setup_point()
1307 if (dist2 <= rmax2) { in sp_setup_point()
1308 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point()
1315 dist2 = dx * dx + dy * dy; in sp_setup_point()
1316 if (dist2 <= rmax2) { in sp_setup_point()
1317 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point()
1324 dist2 = dx * dx + dy * dy; in sp_setup_point()
1325 if (dist2 <= rmax2) { in sp_setup_point()
1326 cover = 1.0F - (dist2 - rmin2) * cscale; in sp_setup_point()
[all …]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
DbtSphereBoxCollisionAlgorithm.cpp126 btScalar dist2 = normal.length2(); in getSphereDistance() local
127 if (dist2 > contactDist * contactDist) in getSphereDistance()
135 if (dist2 <= SIMD_EPSILON) in getSphereDistance()
/external/libjpeg-turbo/
Djquant2.c300 INT32 dist0,dist1,dist2; in update_box() local
384 dist2 = ((c2max - c2min) << C2_SHIFT) * C2_SCALE; in update_box()
385 boxp->volume = dist0*dist0 + dist1*dist1 + dist2*dist2; in update_box()
768 register INT32 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/opencv/cvaux/src/
Dcvlee.cpp2650 float radius1,radius2,dist1,dist2; in _cvJoinChains() local
2690 dist1=dist2=-1; in _cvJoinChains()
2723 dist2 = _cvCalcEdgeIntersection(pEdge1, pEdge_right, &Point2, radius2); in _cvJoinChains()
2725 dist2 = _cvCalcEdgeIntersection(pEdge2, pEdge_right, &Point2, radius2); in _cvJoinChains()
2727 if(dist2>=0) in _cvJoinChains()
2733 if(dist1<0&&dist2<0) in _cvJoinChains()
2772 if(fabs(dist1 - dist2)<dist_eps) in _cvJoinChains()
2832 if((dist1<dist2&&dist1>=0)||(dist1>=0&&dist2<0)) in _cvJoinChains()
2881 if((dist1>dist2&&dist2>=0)||(dist1<0&&dist2>=0)) in _cvJoinChains()
3085 float radius1, radius2,dist1, dist2; in _cvFindOppositSiteCW() local
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/decals/
DCameraGroupStrategy.java103 float dist2 = camera.position.dst(o2.position); in CameraGroupStrategy()
104 return (int)Math.signum(dist2 - dist1); in CameraGroupStrategy()
/external/mesa3d/src/mesa/swrast/
Ds_points.c329 const GLfloat dist2 = dx * dx + dy * dy; in smooth_point() local
332 if (dist2 < rmax2) { in smooth_point()
333 if (dist2 >= rmin2) { in smooth_point()
335 coverage = 1.0F - (dist2 - rmin2) * cscale; in smooth_point()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/shaders/
Ddefault.vertex.glsl324 float dist2 = dot(lightDir, lightDir);
325 lightDir *= inversesqrt(dist2);
327 vec3 value = u_pointLights[i].color * (NdotL / (1.0 + dist2));
/external/skia/tests/
DPathOpsAngleIdeas.cpp763 double dist2 = v2.length() * m; in mDistance() local
767 endCtrlRatio(q1), endCtrlRatio(q2), m, dist1, dist2, dir > 0 ? '+' : '-', in mDistance()
772 bool use1 = fabs(dist1) < fabs(dist2); in mDistance()
774 SkDebugf("%c dist=%1.9g r=%1.9g\n", agrees ? 'T' : 'F', use1 ? dist1 : dist2, in mDistance()
775 use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
777 return fabs(use1 ? distEndRatio(dist1, q1) : distEndRatio(dist2, q2)); in mDistance()
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/autofit/
Dafcjk.c999 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local
1009 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges()
1010 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges()
1016 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges()
1990 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local
2007 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges()
2009 span = dist1 - dist2; in af_cjk_hint_edges()
/external/freetype/src/autofit/
Dafcjk.c1057 FT_Pos dist2 = 0; in af_cjk_hints_compute_edges() local
1067 dist2 = AF_SEGMENT_DIST( link, link1 ); in af_cjk_hints_compute_edges()
1068 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges()
1074 if ( dist2 >= edge_distance_threshold ) in af_cjk_hints_compute_edges()
2048 FT_Pos dist1, dist2, span; in af_cjk_hint_edges() local
2065 dist2 = edge3->opos - edge2->opos; in af_cjk_hint_edges()
2067 span = dist1 - dist2; in af_cjk_hint_edges()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp332 std::binomial_distribution<unsigned> dist2(5, 0.1); in main() local
335 assert(dist1(gen1) == dist2(gen2)); in main()
/external/e2fsprogs/po/
DMakefile.in.in297 @$(MAKE) dist2
299 dist2: $(DISTFILES)
/external/libexif/po/
DMakefile.in.in290 @$(MAKE) dist2
292 dist2: $(DISTFILES)
/external/bison/po/
DMakefile.in.in358 @$(MAKE) dist2
360 dist2: stamp-po $(DISTFILES)

12