Home
last modified time | relevance | path

Searched refs:dist (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/external/speex/libspeex/
Dvq.c82 spx_word32_t dist=0; in vq_nbest() local
84 dist = MAC16_16(dist,in[j],*codebook++); in vq_nbest()
86 dist=SUB32(SHR32(E[i],1),dist); in vq_nbest()
88 dist=.5f*E[i]-dist; in vq_nbest()
90 if (i<N || dist<best_dist[N-1]) in vq_nbest()
92 for (k=N-1; (k >= 1) && (k > used || dist < best_dist[k-1]); k--) in vq_nbest()
97 best_dist[k]=dist; in vq_nbest()
116 spx_word32_t dist=0; in vq_nbest_sign() local
118 dist = MAC16_16(dist,in[j],*codebook++); in vq_nbest_sign()
119 if (dist>0) in vq_nbest_sign()
[all …]
Dvq_sse.h39 VARDECL(float *dist); in vq_nbest()
43 ALLOC(dist, entries, float); in vq_nbest()
53 _mm_storeu_ps(dist+4*i, d); in vq_nbest()
57 if (i<N || dist[i]<best_dist[N-1]) in vq_nbest()
59 for (k=N-1; (k >= 1) && (k > used || dist[i] < best_dist[k-1]); k--) in vq_nbest()
64 best_dist[k]=dist[i]; in vq_nbest()
78 VARDECL(float *dist); in vq_nbest_sign()
82 ALLOC(dist, entries, float); in vq_nbest_sign()
92 _mm_storeu_ps(dist+4*i, d); in vq_nbest_sign()
97 if (dist[i]>0) in vq_nbest_sign()
[all …]
Dvq_bfin.h43 spx_word32_t dist; in vq_nbest() local
67 : "=&D" (dist), "=&a" (codebook), "=&d" (best_dist[0]), "=&d" (nbest[0]), "=&a" (E) in vq_nbest()
77 spx_word32_t dist; in vq_nbest() local
90 : "=D" (dist), "=a" (codebook) in vq_nbest()
94 if (i<N || dist<best_dist[N-1]) in vq_nbest()
96 for (k=N-1; (k >= 1) && (k > used || dist < best_dist[k-1]); k--) in vq_nbest()
101 best_dist[k]=dist; in vq_nbest()
/external/freetype/src/autofit/
Daflatin.c129 FT_Pos dist; in af_latin_metrics_init_widths() local
132 dist = seg->pos - link->pos; in af_latin_metrics_init_widths()
133 if ( dist < 0 ) in af_latin_metrics_init_widths()
134 dist = -dist; in af_latin_metrics_init_widths()
137 axis->widths[num_widths++].org = dist; in af_latin_metrics_init_widths()
304 FT_Pos dist; in af_latin_metrics_init_blues() local
319 dist = points[prev].y - best_y; in af_latin_metrics_init_blues()
320 if ( dist < -5 || dist > 5 ) in af_latin_metrics_init_blues()
332 dist = points[next].y - best_y; in af_latin_metrics_init_blues()
333 if ( dist < -5 || dist > 5 ) in af_latin_metrics_init_blues()
[all …]
Daflatin2.c128 FT_Pos dist; in af_latin2_metrics_init_widths() local
131 dist = seg->pos - link->pos; in af_latin2_metrics_init_widths()
132 if ( dist < 0 ) in af_latin2_metrics_init_widths()
133 dist = -dist; in af_latin2_metrics_init_widths()
136 axis->widths[num_widths++].org = dist; in af_latin2_metrics_init_widths()
296 FT_Pos dist; in af_latin2_metrics_init_blues() local
309 dist = points[prev].y - best_y; in af_latin2_metrics_init_blues()
310 if ( dist < -5 || dist > 5 ) in af_latin2_metrics_init_blues()
323 dist = points[next].y - best_y; in af_latin2_metrics_init_blues()
324 if ( dist < -5 || dist > 5 ) in af_latin2_metrics_init_blues()
[all …]
Dafcjk.c141 FT_Pos dist; in af_cjk_metrics_init_widths() local
144 dist = seg->pos - link->pos; in af_cjk_metrics_init_widths()
145 if ( dist < 0 ) in af_cjk_metrics_init_widths()
146 dist = -dist; in af_cjk_metrics_init_widths()
149 axis->widths[num_widths++].org = dist; in af_cjk_metrics_init_widths()
607 FT_Pos dist; in af_cjk_metrics_scale_dim() local
617 dist = FT_MulFix( blue->ref.org - blue->shoot.org, scale ); in af_cjk_metrics_scale_dim()
618 if ( dist <= 48 && dist >= -48 ) in af_cjk_metrics_scale_dim()
757 FT_Pos dist = seg2->pos - seg1->pos; in af_cjk_hints_link_segments() local
760 if ( dist < 0 ) in af_cjk_hints_link_segments()
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/
DFaultHeightMap.java179 float dist = ((x2 - x1) * (j - y1) - (y2 - y1) * (i - x1)) in addLineFault() local
181 tempBuffer[i][j] += calcHeight(dist, random, faultHeight, range); in addLineFault()
197 float dist; in addCircleFault() local
204 dist = FastMath.sign(dmag - radius) in addCircleFault()
207 dist = 0; in addCircleFault()
209 tempBuffer[i][j] += calcHeight(dist, random, faultHeight, range); in addCircleFault()
214 protected float calcHeight(float dist, Random random, float faultHeight, float range) { in calcHeight() argument
217 return FastMath.sign(dist) * faultHeight; in calcHeight()
220 if (FastMath.abs(dist) > range) { in calcHeight()
221 return FastMath.sign(dist) * faultHeight; in calcHeight()
[all …]
/external/quake/quake/src/QW/server/
Dsv_move.c233 qboolean SV_StepDirection (edict_t *ent, float yaw, float dist) in SV_StepDirection() argument
242 move[0] = cos(yaw)*dist; in SV_StepDirection()
243 move[1] = sin(yaw)*dist; in SV_StepDirection()
284 void SV_NewChaseDir (edict_t *actor, edict_t *enemy, float dist) in SV_NewChaseDir() argument
316 if (tdir != turnaround && SV_StepDirection(actor, tdir, dist)) in SV_NewChaseDir()
329 && SV_StepDirection(actor, d[1], dist)) in SV_NewChaseDir()
333 && SV_StepDirection(actor, d[2], dist)) in SV_NewChaseDir()
338 if (olddir!=DI_NODIR && SV_StepDirection(actor, olddir, dist)) in SV_NewChaseDir()
344 if (tdir!=turnaround && SV_StepDirection(actor, tdir, dist) ) in SV_NewChaseDir()
350 if (tdir!=turnaround && SV_StepDirection(actor, tdir, dist) ) in SV_NewChaseDir()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
DConstraintDistLimit.java23 protected float dist; field in ConstraintDistLimit
45 dist = ((Number) data.getFieldValue("dist")).floatValue(); in ConstraintDistLimit()
94 if (currentDistance >= dist) { in distLimit()
96 v.multLocal(dist + (currentDistance - dist) * (1.0f - influence)); in distLimit()
101 if (currentDistance > dist) { in distLimit()
103 v.multLocal(dist + (currentDistance - dist) * (1.0f - influence)); in distLimit()
105 } else if(currentDistance < dist) { in distLimit()
106 v.normalizeLocal().multLocal(dist * influence); in distLimit()
111 if (currentDistance <= dist) { in distLimit()
112 v = targetLocation.subtract(currentLocation).normalizeLocal().multLocal(dist * influence); in distLimit()
/external/iproute2/netem/
DMakefile2 DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
13 %.dist: %
16 experimental.dist: maketable experimental.dat
17 ./maketable experimental.dat > experimental.dist
/external/bluetooth/glib/build/win32/dirent/
Ddirent-zip7 mkdir -p dist/include dist/lib
8 cp dirent.h dist/include
9 cp dirent.lib dist/lib
11 (cd dist
19 rm -rf dist
/external/icu4c/extra/
DMakefile.in29 distclean-local distclean-recursive dist dist-recursive dist-local \
40 dist: dist-recursive dist-local
44 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
65 dist-local:
/external/quake/quake/src/WinQuake/
Dsv_move.cpp233 qboolean SV_StepDirection (edict_t *ent, float yaw, float dist) in SV_StepDirection() argument
242 move[0] = cos(yaw)*dist; in SV_StepDirection()
243 move[1] = sin(yaw)*dist; in SV_StepDirection()
284 void SV_NewChaseDir (edict_t *actor, edict_t *enemy, float dist) in SV_NewChaseDir() argument
316 if (tdir != turnaround && SV_StepDirection(actor, tdir, dist)) in SV_NewChaseDir()
329 && SV_StepDirection(actor, d[1], dist)) in SV_NewChaseDir()
333 && SV_StepDirection(actor, d[2], dist)) in SV_NewChaseDir()
338 if (olddir!=DI_NODIR && SV_StepDirection(actor, olddir, dist)) in SV_NewChaseDir()
344 if (tdir!=turnaround && SV_StepDirection(actor, tdir, dist) ) in SV_NewChaseDir()
350 if (tdir!=turnaround && SV_StepDirection(actor, tdir, dist) ) in SV_NewChaseDir()
[all …]
Dcl_tent.cpp329 vec3_t dist, org; in CL_UpdateTEnts() local
350 VectorSubtract (b->end, b->start, dist); in CL_UpdateTEnts()
352 if (dist[1] == 0 && dist[0] == 0) in CL_UpdateTEnts()
355 if (dist[2] > 0) in CL_UpdateTEnts()
362 yaw = (int) (atan2(dist[1], dist[0]) * 180 / M_PI); in CL_UpdateTEnts()
366 forward = sqrt (dist[0]*dist[0] + dist[1]*dist[1]); in CL_UpdateTEnts()
367 pitch = (int) (atan2(dist[2], forward) * 180 / M_PI); in CL_UpdateTEnts()
374 d = VectorNormalize(dist); in CL_UpdateTEnts()
387 org[i] += dist[i]*30; in CL_UpdateTEnts()
/external/quake/quake/src/QW/client/
Dpmovetst.c76 box_planes[0].dist = maxs[0]; in PM_HullForBox()
77 box_planes[1].dist = mins[0]; in PM_HullForBox()
78 box_planes[2].dist = maxs[1]; in PM_HullForBox()
79 box_planes[3].dist = mins[1]; in PM_HullForBox()
80 box_planes[4].dist = maxs[2]; in PM_HullForBox()
81 box_planes[5].dist = mins[2]; in PM_HullForBox()
108 d = p[plane->type] - plane->dist; in PM_HullPointContents()
110 d = DotProduct (plane->normal, p) - plane->dist; in PM_HullPointContents()
147 d = p[plane->type] - plane->dist; in PM_PointContents()
149 d = DotProduct (plane->normal, p) - plane->dist; in PM_PointContents()
[all …]
Dcl_tent.c354 vec3_t dist, org; in CL_UpdateBeams() local
374 VectorSubtract (b->end, b->start, dist); in CL_UpdateBeams()
376 if (dist[1] == 0 && dist[0] == 0) in CL_UpdateBeams()
379 if (dist[2] > 0) in CL_UpdateBeams()
386 yaw = (int) (atan2(dist[1], dist[0]) * 180 / M_PI); in CL_UpdateBeams()
390 forward = sqrt (dist[0]*dist[0] + dist[1]*dist[1]); in CL_UpdateBeams()
391 pitch = (int) (atan2(dist[2], forward) * 180 / M_PI); in CL_UpdateBeams()
398 d = VectorNormalize(dist); in CL_UpdateBeams()
411 org[i] += dist[i]*30; in CL_UpdateBeams()
/external/libusb/
DMakefile.am1 AUTOMAKE_OPTIONS = dist-bzip2 no-dist-gzip
14 .PHONY: ChangeLog dist-up
18 dist-hook: ChangeLog
21 dist-up: dist
/external/icu4c/samples/
DMakefile.in28 distclean-local distclean-recursive dist dist-recursive dist-local \
39 dist: dist-recursive dist-local
51 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
91 dist-local:
/external/icu4c/tools/
DMakefile.in23 distclean-local distclean-recursive dist dist-local dist-recursive \
34 dist: dist-recursive
38 all-recursive install-recursive clean-recursive distclean-recursive dist-recursive check-recursive:
63 dist-local:
/external/opencv/cv/src/
Dcvkdtree.cpp83 void find_nn(CvMat* d, int k, int emax, CvMat* results, CvMat* dist) { in find_nn()
87 uchar* distptr = dist->data.ptr; in find_nn()
92 assert(results->rows == dist->rows); in find_nn()
94 assert(dist->cols == k); in find_nn()
106 *distj++ = nn[j].dist; in find_nn()
113 distptr += dist->step; in find_nn()
162 void find_nn(CvMat* d, int k, int emax, CvMat* results, CvMat* dist) { in find_nn()
164 assert(CV_MAT_TYPE(dist->type) == CV_64FC1); in find_nn()
168 (d, k, emax, results, dist)); in find_nn()
208 CvMat* results, CvMat* dist, int k, int emax) { in cvFindFeatures() argument
[all …]
D_cvkdtree.hpp303 accum_type dist; // distance from d to query point member
305 : p(&_p), dist(_dist) { in bbf_nn()
308 return dist < rhs.dist; in operator <()
315 accum_type dist; // minimum distance from bounds to query point member
317 : node(_node), dist(_dist) { in bbf_node()
320 return dist > rhs.dist; in operator <()
328 void pq_alternate(int alt_n, bbf_pqueue & pq, scalar_type dist) const { in pq_alternate()
333 pq.push_back(bbf_node(alt_n, dist)); in pq_alternate()
355 accum_type dist = 0; in distance() local
358 dist += diff * diff; in distance()
[all …]
/external/libusb-compat/
DMakefile.am1 AUTOMAKE_OPTIONS = dist-bzip2
16 .PHONY: ChangeLog dist-up
20 dist-hook: ChangeLog
22 dist-up: dist
/external/blktrace/btt/
Dseek.c186 long long dist; in seek_dist() local
190 dist = start - sip->last_end; in seek_dist()
195 dist = 0; in seek_dist()
197 dist = start - sip->last_end; in seek_dist()
199 dist = start - sip->last_start; in seek_dist()
205 return dist; in seek_dist()
255 long long dist = seek_dist(sip, iop); in seeki_add() local
260 fprintf(fp, "%15.9lf %13lld %c\n", tstamp, dist, rw); in seeki_add()
262 fprintf(sip->cfp, "%15.9lf %13lld %c\n", tstamp, dist, rw); in seeki_add()
264 dist = llabs(dist); in seeki_add()
[all …]
/external/zlib/
Dinffast.c94 unsigned dist; /* match distance */ local
165 dist = (unsigned)(here.val);
175 dist += (unsigned)hold & ((1U << op) - 1);
177 if (dist > dmax) {
185 Tracevv((stderr, "inflate: distance %u\n", dist));
187 if (dist > op) { /* see if copy from window */
188 op = dist - op; /* distance back in window */
208 from = out - dist;
224 from = out - dist; /* rest from output */
242 from = out - dist; /* rest from output */
[all …]
/external/qemu/distrib/zlib-1.2.3/
Ddeflate.h283 int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
290 #define d_code(dist) \ argument
291 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
317 ush dist = (distance); \
318 s->d_buf[s->last_lit] = dist; \
320 dist--; \
322 s->dyn_dtree[d_code(dist)].Freq++; \

12345678910>>...17