Searched defs:denom (Results 1 - 25 of 70) sorted by relevance

123

/external/compiler-rt/lib/ppc/
H A Ddivtc3.c41 const long double denom = __gcc_qadd(__gcc_qmul(cDD.ld, cDD.ld), __gcc_qmul(dDD.ld, dDD.ld)); local
45 DD real = { .ld = __gcc_qdiv(realNumerator, denom) };
46 DD imag = { .ld = __gcc_qdiv(imagNumerator, denom) };
57 DD rDD = { .ld = denom };
/external/aac/libSBRenc/src/
H A Dsbr_misc.cpp238 return: num*scale/denom
241 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom, FIXP_DBL scale) argument
248 INT shiftDenom = CountLeadingBits(denom);
256 if ( denom > (tmp >> fixMin(shiftNum+shiftScale-1,(DFRACT_BITS-1))) ) {
257 denom = denom << shiftDenom;
258 tmp = schur_div(tmp,denom,15);
H A Dton_corr.cpp240 FIXP_DBL tmp,num,denom; variable
247 denom = (fac>>1) + (fMultDiv2(fac,RELAXATION_FRACT)>>RELAXATION_SHIFT) - num;
248 denom = fixp_abs(denom);
255 denomShift = CountLeadingBits(denom);
256 denom = (FIXP_DBL)denom << denomShift;
258 if ((num > FL2FXCONST_DBL(0.0f)) && (denom != FL2FXCONST_DBL(0.0f))) {
262 tmp = schur_div(num,denom,16);
267 quotaMatrix[timeIndex][r] = schur_div(num,denom,1
[all...]
/external/chromium_org/third_party/skia/include/core/
H A DSkMath.h16 * Computes numer1 * numer2 / denom in full 64 intermediate precision.
17 * It is an error for denom to be 0. There is no special handling if
20 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom);
23 * Computes (numer1 << shift) / denom in full 64 intermediate precision.
24 * It is an error for denom to be 0. There is no special handling if
27 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
177 * Stores numer/denom and numer%denom into div and mod respectively.
180 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { argument
188 const In d = numer/denom;
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkColor.cpp29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { argument
31 return SkIntToScalar(numer) / (int)denom;
H A DSk64.cpp190 void Sk64::div(int32_t denom, DivOptions option) argument
192 SkASSERT(denom);
196 int sign = denom ^ hi;
198 denom = SkAbs32(denom);
205 if (option == kRound_DivOption) // add denom/2
207 uint32_t newLo = lo + (denom >> 1);
214 if (lo < (uint32_t)denom)
218 this->set(0, lo / denom);
228 int dbits = SkCLZ(denom);
[all...]
/external/skia/include/core/
H A DSkMath.h16 * Computes numer1 * numer2 / denom in full 64 intermediate precision.
17 * It is an error for denom to be 0. There is no special handling if
20 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom);
23 * Computes (numer1 << shift) / denom in full 64 intermediate precision.
24 * It is an error for denom to be 0. There is no special handling if
27 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
177 * Stores numer/denom and numer%denom into div and mod respectively.
180 inline void SkTDivMod(In numer, In denom, Out* div, Out* mod) { argument
188 const In d = numer/denom;
[all...]
/external/skia/src/core/
H A DSkColor.cpp29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { argument
31 return SkIntToScalar(numer) / (int)denom;
H A DSk64.cpp190 void Sk64::div(int32_t denom, DivOptions option) argument
192 SkASSERT(denom);
196 int sign = denom ^ hi;
198 denom = SkAbs32(denom);
205 if (option == kRound_DivOption) // add denom/2
207 uint32_t newLo = lo + (denom >> 1);
214 if (lo < (uint32_t)denom)
218 this->set(0, lo / denom);
228 int dbits = SkCLZ(denom);
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
H A DFloatPoint.cpp131 float denom = pxLength * dyLength - pyLength * dxLength; local
132 if (!denom)
135 float param = ((d1.x() - p1.x()) * dyLength - (d1.y() - p1.y()) * dxLength) / denom;
/external/chromium_org/third_party/skia/src/effects/gradients/
H A DSkSweepGradient.cpp94 // divide numer/denom, with a bias of 6bits. Assumes numer <= denom
95 // and denom != 0. Since our table is 6bits big (+1), this is a nice fit.
96 // Same as (but faster than) SkFixedDiv(numer, denom) >> 10
98 //unsigned div_64(int numer, int denom);
100 static unsigned div_64(int numer, int denom) { argument
101 SkASSERT(numer <= denom);
103 SkASSERT(denom > 0);
106 int dbits = SkCLZ(denom);
114 denom <<
[all...]
/external/skia/src/effects/gradients/
H A DSkSweepGradient.cpp94 // divide numer/denom, with a bias of 6bits. Assumes numer <= denom
95 // and denom != 0. Since our table is 6bits big (+1), this is a nice fit.
96 // Same as (but faster than) SkFixedDiv(numer, denom) >> 10
98 //unsigned div_64(int numer, int denom);
100 static unsigned div_64(int numer, int denom) { argument
101 SkASSERT(numer <= denom);
103 SkASSERT(denom > 0);
106 int dbits = SkCLZ(denom);
114 denom <<
[all...]
/external/skia/tests/
H A DSk64Test.cpp158 int32_t denom = rand.nextS(); local
160 while (denom == 0)
161 denom = rand.nextS();
165 wide.div(denom, Sk64::kTrunc_DivOption);
166 check /= denom;
173 denom = wide.getSqrt();
175 int diff = denom - ck;
195 SkDebugf(" %d === numer %g denom %g div %g xdiv %x fxdiv %x\n",
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_format_rgb9e5.h108 double denom; local
119 denom = pow(2, exp_shared - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS);
121 maxm = (int) floor(maxrgb / denom + 0.5);
123 denom *= 2;
130 rm = (int) floor(rc / denom + 0.5);
131 gm = (int) floor(gc / denom + 0.5);
132 bm = (int) floor(bc / denom + 0.5);
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/
H A Ds_aatriangle.c120 const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y; local
121 if (denom == 0.0F)
124 return -plane[2] / denom;
/external/chromium_org/third_party/skia/src/gpu/effects/
H A DGrConvolutionEffect.cpp177 float denom = 1.0f / (2.0f * gaussianSigma * gaussianSigma); local
182 fKernel[i] = sk_float_exp(- x * x * denom);
/external/chromium_org/third_party/skia/src/pathops/
H A DSkDLineIntersection.cpp19 double denom = byLen * axLen - ayLen * bxLen; local
20 SkASSERT(denom);
24 p.fX = (term1 * bxLen - axLen * term2) / denom;
25 p.fY = (term1 * byLen - ayLen * term2) / denom;
69 /* Slopes match when denom goes to zero:
73 byLen * axLen - ayLen * bxLen == 0 ( == denom )
75 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; local
79 numerA /= denom;
80 numerB /= denom;
82 if (!approximately_zero(denom)) {
144 double denom = axByLen - ayBxLen; local
[all...]
H A DSkPathOpsLine.cpp73 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local
76 if (!between(0, numer, denom)) {
79 double t = numer / denom;
97 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local
100 double t = numer / denom;
H A DSkReduceOrder.cpp225 double denom = SkTMax(fabs(cx), SkTMax(fabs(cy), local
227 if (denom == 0) {
232 double inv = 1 / denom;
/external/chromium_org/ui/gfx/
H A Dquad_f.cc78 double denom = dot00 * dot11 - dot01 * dot01; local
80 double v = (dot11 * dot20 - dot01 * dot21) / denom;
81 double w = (dot00 * dot21 - dot01 * dot20) / denom;
/external/eigen/Eigen/src/Eigenvalues/
H A DEigenSolver.h469 Scalar denom = (m_eivalues.coeff(i).real() - p) * (m_eivalues.coeff(i).real() - p) + m_eivalues.coeff(i).imag() * m_eivalues.coeff(i).imag(); local
470 Scalar t = (x * lastr - lastw * r) / denom;
/external/libvorbis/lib/
H A Dlsp.c321 double p=defl[m],pp=0.f,ppp=0.f,denom; local
331 denom=(m-1) * ((m-1)*pp*pp - m*p*ppp);
332 if(denom<0)
336 denom = pp + sqrt(denom);
337 if(denom<EPSILON)denom=EPSILON;
339 denom = pp - sqrt(denom);
340 if(denom>
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_rgb9e5.h108 double denom; local
119 denom = pow(2, exp_shared - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS);
121 maxm = (int) floor(maxrgb / denom + 0.5);
123 denom *= 2;
130 rm = (int) floor(rc / denom + 0.5);
131 gm = (int) floor(gc / denom + 0.5);
132 bm = (int) floor(bc / denom + 0.5);
/external/mesa3d/src/mesa/swrast/
H A Ds_aatriangle.c120 const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y; local
121 if (denom == 0.0F)
124 return -plane[2] / denom;
/external/skia/src/gpu/effects/
H A DGrConvolutionEffect.cpp177 float denom = 1.0f / (2.0f * gaussianSigma * gaussianSigma); local
182 fKernel[i] = sk_float_exp(- x * x * denom);

Completed in 467 milliseconds

123