Home
last modified time | relevance | path

Searched refs:fabs (Results 1 – 25 of 232) sorted by relevance

12345678910

/external/opencv/cv/src/
Dcvmatchcontours.cpp111 double ama = fabs( ma[i] ); in cvMatchShapes()
112 double amb = fabs( mb[i] ); in cvMatchShapes()
131 result += fabs( -ama + amb ); in cvMatchShapes()
141 double ama = fabs( ma[i] ); in cvMatchShapes()
142 double amb = fabs( mb[i] ); in cvMatchShapes()
161 result += fabs( -ama + amb ); in cvMatchShapes()
171 double ama = fabs( ma[i] ); in cvMatchShapes()
172 double amb = fabs( mb[i] ); in cvMatchShapes()
191 mmm = fabs( (ama - amb) / ama ); in cvMatchShapes()
343 t0 = fabs( r11 * w1 + r21 * w2 ); in cvMatchContourTrees()
[all …]
Dcvcamshift.cpp104 if( fabs(moments.m00) < DBL_EPSILON ) in cvMeanShift()
221 if( fabs(m00) < DBL_EPSILON ) in cvCamShift()
263 t0 = cvRound( fabs( length * cs )); in cvCamShift()
264 t1 = cvRound( fabs( width * sn )); in cvCamShift()
269 t0 = cvRound( fabs( length * sn )); in cvCamShift()
270 t1 = cvRound( fabs( width * cs )); in cvCamShift()
Dcvlinefit.cpp234 dist[j] = (float) fabs( nx * x + ny * y ); in icvCalcDist2D()
276 double t = fabs( (double) d[i] ); in icvWeightL1()
422 if( fabs(acos(t)) < adelta ) in icvFitLine2D()
426 x = (float) fabs( _line[2] - _lineprev[2] ); in icvFitLine2D()
427 y = (float) fabs( _line[3] - _lineprev[3] ); in icvFitLine2D()
448 if( fabs(sum_w) > FLT_EPSILON ) in icvFitLine2D()
572 if( fabs(acos(t)) < adelta ) in icvFitLine3D()
582 dx = (float) fabs( y * az - z * ay ); in icvFitLine3D()
583 dy = (float) fabs( z * ax - x * az ); in icvFitLine3D()
584 dz = (float) fabs( x * ay - y * ax ); in icvFitLine3D()
[all …]
Dcvsubdivision2d.cpp353 t1 = fabs( pt.x - org_pt.x ); in cvSubdiv2DLocate()
354 t1 += fabs( pt.y - org_pt.y ); in cvSubdiv2DLocate()
355 t2 = fabs( pt.x - dst_pt.x ); in cvSubdiv2DLocate()
356 t2 += fabs( pt.y - dst_pt.y ); in cvSubdiv2DLocate()
357 t3 = fabs( org_pt.x - dst_pt.x ); in cvSubdiv2DLocate()
358 t3 += fabs( org_pt.y - dst_pt.y ); in cvSubdiv2DLocate()
373 fabs( cvTriangleArea( pt, org_pt, dst_pt )) < FLT_EPSILON ) in cvSubdiv2DLocate()
675 if( fabs( virt_point.x ) < FLT_MAX * 0.5 && in cvCalcSubdivVoronoi2D()
676 fabs( virt_point.y ) < FLT_MAX * 0.5 ) in cvCalcSubdivVoronoi2D()
696 if( fabs( virt_point.x ) < FLT_MAX * 0.5 && in cvCalcSubdivVoronoi2D()
[all …]
Dcvcontourtree.cpp252 tree_one.area = fabs( s ); in icvCreateContourTree()
279 tree_one.area = fabs( s ); in icvCreateContourTree()
402 a_s_c = fabs( s_c - sn2_c ); in icvCreateContourTree()
403 a_sp1_c = fabs( sp1_c - sn1_c ); in icvCreateContourTree()
410 tree_one.area = fabs( s ); in icvCreateContourTree()
418 tree_two.area = fabs( sn2 ); in icvCreateContourTree()
483 tree_one.area = fabs( sp1 ); in icvCreateContourTree()
491 tree_two.area = fabs( sn1 ); in icvCreateContourTree()
559 tree_root->area = fabs( s ); in icvCreateContourTree()
Dcvcorner.cpp134 double e = fabs(x); in icvCalcEigenValsVecs()
136 if( e + fabs(y) < 1e-4 ) in icvCalcEigenValsVecs()
140 e = fabs(x); in icvCalcEigenValsVecs()
141 if( e + fabs(y) < 1e-4 ) in icvCalcEigenValsVecs()
143 e = 1./(e + fabs(y) + FLT_EPSILON); in icvCalcEigenValsVecs()
155 e = fabs(x); in icvCalcEigenValsVecs()
157 if( e + fabs(y) < 1e-4 ) in icvCalcEigenValsVecs()
161 e = fabs(x); in icvCalcEigenValsVecs()
162 if( e + fabs(y) < 1e-4 ) in icvCalcEigenValsVecs()
164 e = 1./(e + fabs(y) + FLT_EPSILON); in icvCalcEigenValsVecs()
/external/llvm/test/Transforms/TailCallElim/
Dinf-recursion.ll4 ; of fabs and we expect the codegen to lower fabs.
5 ; CHECK: @fabs(double %f)
9 define double @fabs(double %f) {
11 %tmp2 = call double @fabs( double %f ) ; <double> [#uses=1]
/external/llvm/test/CodeGen/PowerPC/
Dfabs.ll1 ; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin | grep {fabs f1, f1}
3 define double @fabs(double %f) {
5 %tmp2 = tail call double @fabs( double %f ) ; <double> [#uses=1]
Dfnabs.ll3 declare double @fabs(double)
6 %Y = call double @fabs( double %X ) ; <double> [#uses=1]
/external/stlport/stlport/stl/config/
D_como.h97 # define fabsl fabs
129 # define fabsf fabs
130 # define fabsl fabs
169 # define fabsl fabs
/external/srec/srec/clib/
Djacobi.c112 g = 100.0 * fabs(a[i][i]); in Jacobi()
115 if ((iter >= 4) && (g < EPSILON*fabs(d[i])) in Jacobi()
116 && (g < EPSILON*fabs(d[j]))) in Jacobi()
124 if (g < EPSILON*fabs(h)) in Jacobi()
129 t = 1.0 / (fabs(theta) + sqrt(1.0 + theta * theta)); in Jacobi()
214 sum += fabs(mat[i][j]); in SumOffDiag()
/external/webkit/Source/WebCore/platform/audio/
DCone.cpp60 double absAngle = fabs(angle); in gain()
63 double absInnerAngle = fabs(m_innerAngle) / 2.0; in gain()
64 double absOuterAngle = fabs(m_outerAngle) / 2.0; in gain()
/external/llvm/test/CodeGen/Mips/
D2008-08-03-fabs64.ll10 tail call double @fabs( double %c ) nounwind readnone ; <double>:0 [#uses=1]
11 tail call double @fabs( double %d ) nounwind readnone ; <double>:0 [#uses=1]
16 declare double @fabs(double) nounwind readnone
/external/llvm/test/CodeGen/X86/
Dfabs.ll1 ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
2 ; RUN: llc < %s -march=x86 -mattr=-sse2,-sse3,-sse | grep fabs\$ | \
5 ; RUN: grep fabs\$ | count 3
Dstack-align.ll13 %tmp4 = tail call double @fabs( double %tmp3 ) ; <double> [#uses=1]
17 %tmp2 = tail call double @fabs( double %tmp1 ) ; <double> [#uses=1]
39 declare double @fabs(double)
/external/webkit/Source/WebCore/platform/graphics/
DUnitBezier.h75 if (fabs (x2) < epsilon) in solveCurveX()
78 if (fabs(d2) < 1e-6) in solveCurveX()
95 if (fabs(x2 - x) < epsilon) in solveCurveX()
/external/stlport/stlport/stl/
D_cmath.h345 # pragma function (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh…
369 _STLP_DMATH_INLINE(fabs) in _STLP_DMATH_INLINE()
390 # if defined (fabs) in _STLP_DMATH_INLINE()
391 inline double __stlp_fabs(double __x) { return fabs(__x); } in _STLP_DMATH_INLINE()
392 # undef fabs
393 inline double fabs(double __x) { return __stlp_fabs(__x); } in fabs() function
425 { return ::fabs(__x); } in abs()
427 _STLP_DEF_MATH_INLINE(abs, fabs) in _STLP_DEF_MATH_INLINE() argument
440 _STLP_DEF_MATH_INLINE(fabs, fabs)
515 # pragma intrinsic (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sin…
[all …]
/external/llvm/test/Transforms/InstCombine/
Dno-negzero.ll3 ; sqrt(fabs) cannot be negative zero, so we should eliminate the fadd.
18 %2 = call double @fabs(double %1) nounwind readnone ; <double> [#uses=1]
31 declare double @fabs(double)
/external/opencv/cvaux/src/
Dcvlmeds.cpp232 ro1 = fabs( c1 ); in icvCubic()
233 ro2 = fabs( c2 ); in icvCubic()
250 tt = SIGN( ro1 ) * pow( fabs( ro1 ), 0.333333333333 ); in icvCubic()
257 tt = SIGN( ro2 ) * pow( fabs( ro2 ), 0.333333333333 ); in icvCubic()
858 aW[0] = fabs(W[0]); in icvRank2Constraint()
859 aW[1] = fabs(W[1]); in icvRank2Constraint()
860 aW[2] = fabs(W[2]); in icvRank2Constraint()
987 scale += fabs( U[kN + i] ); in icvSingularValueDecomposition()
1037 scale += fabs( U[iN + k] ); in icvSingularValueDecomposition()
1074 t = fabs( W[i] ); in icvSingularValueDecomposition()
[all …]
/external/llvm/test/Transforms/SimplifyLibCalls/
Dpow-to-sqrt.ll21 ; CHECK: %fabs = call double @fabs(double %sqrt) nounwind readonly
23 ; CHECK: %tmp1 = select i1 %tmp, double 0x7FF0000000000000, double %fabs
/external/llvm/test/CodeGen/Generic/
Dfneg-fabs.ll13 declare double @fabs(double)
18 %Y = call double @fabs( double %X ) ; <double> [#uses=1]
/external/llvm/test/CodeGen/ARM/
D2009-08-29-TooLongSplat.ll12 %4 = tail call double @fabs(double %3) nounwind readnone ; <double> [#uses=1]
23 declare double @fabs(double)
/external/opencv/cxcore/src/
Dcxutils.cpp378 e = pow(d + fabs(R), 0.333333333333); in cvSolveCubic()
510 s += log(fabs(h[2 + j])); in icvFindPolynomialRoots()
516 if (fabs(h[2 + 1] / h[2 + 0]) < fabs(h[2 + n - 1] / h[2 + n])) { in icvFindPolynomialRoots()
548 if (fabs(h[2 + n - 1] / b[2 + n - 1]) >= K) { in icvFindPolynomialRoots()
553 if (K < fabs(h[2 + n] / b[2 + n])) in icvFindPolynomialRoots()
563 if (K < fabs(h[2 + n] / d[2 + n])) in icvFindPolynomialRoots()
597 if ((d[2 + j] != 0.0) && (fabs(h[2 + j] / d[2 + j]) < K)) in icvFindPolynomialRoots()
632 if ((b[2 + j] != 0.0) && (fabs(h[2 + j] / b[2 + j]) < K)) in icvFindPolynomialRoots()
735 v = fabs((double)sptr[i]); in cvNormalize()
741 v = fabs((double)sptr[i]); in cvNormalize()
[all …]
Dcxjacobieigens.cpp118 if( fabs( Apq ) < Amax ) in icvJacobiEigens_32f()
189 float Em = (float) fabs( E[i] ); in icvJacobiEigens_32f()
193 float Ej = (float) fabs( E[j] ); in icvJacobiEigens_32f()
268 if( fabs( A1[q] ) < Amax ) in icvJacobiEigens_64d()
340 double Em = fabs( E[i] ); in icvJacobiEigens_64d()
344 double Ej = fabs( E[j] ); in icvJacobiEigens_64d()
/external/bluetooth/bluez/sbc/
Dsbc_primitives.c435 int32_t tmp = fabs(sb_sample_f[blk][ch][sb]); in sbc_calc_scalefactors()
459 tmp0 = fabs(sb_sample_f[blk][0][sb]); in sbc_calc_scalefactors_j()
460 tmp1 = fabs(sb_sample_f[blk][1][sb]); in sbc_calc_scalefactors_j()
479 tmp0 = fabs(tmp0); in sbc_calc_scalefactors_j()
480 tmp1 = fabs(tmp1); in sbc_calc_scalefactors_j()
493 tmp0 = fabs(sb_sample_j[blk][0]); in sbc_calc_scalefactors_j()
494 tmp1 = fabs(sb_sample_j[blk][1]); in sbc_calc_scalefactors_j()

12345678910