/external/chromium_org/third_party/skia/experimental/Intersection/ |
H A D | Extrema.cpp | 10 static int validUnitDivide(double numer, double denom, double* ratio) argument 14 denom = -denom; 16 if (denom == 0 || numer == 0 || numer >= denom) 18 double r = numer / denom; 19 if (r == 0) { // catch underflow if numer <<<< denom
|
H A D | CubicReduceOrder.cpp | 220 double denom = SkTMax(fabs(cx), SkTMax(fabs(cy), local 222 if (denom == 0) { 227 double inv = 1 / denom;
|
H A D | LineIntersection.cpp | 21 double denom = byLen * axLen - ayLen * bxLen; local 22 SkASSERT(denom); 25 p.x = (term1 * bxLen - axLen * term2) / denom; 26 p.y = (term1 * byLen - ayLen * term2) / denom; 48 /* Slopes match when denom goes to zero: 52 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 54 double denom = byLen * axLen - ayLen * bxLen; local 59 bool mayNotOverlap = (numerA < 0 && denom > numerA) || (numerA > 0 && denom < numerA) 60 || (numerB < 0 && denom > numer [all...] |
/external/compiler-rt/lib/builtins/ppc/ |
H A D | divtc3.c | 41 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/skia/experimental/Intersection/ |
H A D | Extrema.cpp | 10 static int validUnitDivide(double numer, double denom, double* ratio) argument 14 denom = -denom; 16 if (denom == 0 || numer == 0 || numer >= denom) 18 double r = numer / denom; 19 if (r == 0) { // catch underflow if numer <<<< denom
|
/external/aac/libSBRenc/src/ |
H A D | sbr_misc.cpp | 238 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 D | ton_corr.cpp | 240 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/src/core/ |
H A D | SkColor.cpp | 29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { argument 31 return SkIntToScalar(numer) / (int)denom;
|
H A D | SkMath.cpp | 71 if ((numer = (numer << 1) - denom) >= 0) \ 72 result |= 1 << (n - 1); else numer += denom 74 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { argument 75 SkASSERT(denom != 0); 80 // make numer and denom positive, and sign hold the resulting sign 81 int32_t sign = SkExtractSign(numer ^ denom); 83 denom = SkAbs32(denom); 86 int dbits = SkCLZ(denom) - 1; 96 denom << [all...] |
/external/skia/src/core/ |
H A D | SkColor.cpp | 29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { argument 31 return SkIntToScalar(numer) / (int)denom;
|
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
H A D | FloatPoint.cpp | 117 float denom = pxLength * dyLength - pyLength * dxLength; local 118 if (!denom) 121 float param = ((d1.x() - p1.x()) * dyLength - (d1.y() - p1.y()) * dxLength) / denom;
|
/external/chromium_org/third_party/skia/experimental/ |
H A D | SkSetPoly3To3_A.cpp | 18 static SkScalar divide(SkDScalar numer, SkDScalar denom) { argument 19 return static_cast<float>(numer / denom);
|
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkMath.h | 44 * Computes numer1 * numer2 / denom in full 64 intermediate precision. 45 * It is an error for denom to be 0. There is no special handling if 48 static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { argument 49 SkASSERT(denom); 51 int64_t tmp = sk_64_mul(numer1, numer2) / denom; 56 * Computes (numer1 << shift) / denom in full 64 intermediate precision. 57 * It is an error for denom to be 0. There is no special handling if 60 int32_t SkDivBits(int32_t numer, int32_t denom, int shift); 208 * Stores numer/denom and numer%denom int 211 SkTDivMod(In numer, In denom, Out* div, Out* mod) argument [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | smooth.c | 36 int32_t B_W32, denom, num; local 141 /* denom is in Q16 */ 142 denom = WebRtcSpl_DivW32W16(endiff, (int16_t)WEBRTC_SPL_RSHIFT_W32(w00w00, 16)); 144 denom = 65536; 147 if( denom > 7){ /* eliminates numerical problems 150 scale=WebRtcSpl_GetSizeInBits(denom)-15; 154 denomW16=(int16_t)WEBRTC_SPL_RSHIFT_W32(denom, scale); 160 denomW16=(int16_t)denom;
|
H A D | do_plc.c | 55 int16_t denom; local 158 denom=(int16_t)WEBRTC_SPL_MUL_16_16_RSFT(tmp1, tmp2, 16); /* denom in Q(scale1+scale2-16) */ 168 max_perSquare = (int16_t)WebRtcSpl_DivW32W16(nom, denom);
|
/external/chromium_org/ui/gfx/geometry/ |
H A D | quad_f.cc | 75 float denom = r32.y() * r31.x() - r32.x() * r31.y(); local 76 float u = (r32.y() * r3p.x() - r32.x() * r3p.y()) / denom; 77 float v = (r31.x() * r3p.y() - r31.y() * r3p.x()) / denom;
|
/external/skia/experimental/ |
H A D | SkSetPoly3To3_A.cpp | 18 static SkScalar divide(SkDScalar numer, SkDScalar denom) { argument 19 return static_cast<float>(numer / denom);
|
/external/skia/include/core/ |
H A D | SkMath.h | 44 * Computes numer1 * numer2 / denom in full 64 intermediate precision. 45 * It is an error for denom to be 0. There is no special handling if 48 static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { argument 49 SkASSERT(denom); 51 int64_t tmp = sk_64_mul(numer1, numer2) / denom; 56 * Computes (numer1 << shift) / denom in full 64 intermediate precision. 57 * It is an error for denom to be 0. There is no special handling if 60 int32_t SkDivBits(int32_t numer, int32_t denom, int shift); 208 * Stores numer/denom and numer%denom int 211 SkTDivMod(In numer, In denom, Out* div, Out* mod) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_format_rgb9e5.h | 108 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 D | s_aatriangle.c | 120 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/forth/ |
H A D | StdWords.cpp | 141 intptr_t denom = fe->pop(); local 143 fe->push(numer % denom); 144 fe->push(numer / denom);
|
/external/chromium_org/third_party/skia/src/gpu/effects/ |
H A D | GrConvolutionEffect.cpp | 177 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 D | SkPathOpsLine.cpp | 73 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; 100 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 103 double t = numer / denom;
|
H A D | SkReduceOrder.cpp | 225 double denom = SkTMax(fabs(cx), SkTMax(fabs(cy), local 227 if (denom == 0) { 232 double inv = 1 / denom;
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/aec/ |
H A D | aec_resampler.c | 171 float denom = 0; local 217 denom = x2 - xAvg * x; 219 if (denom != 0) { 220 skew = (xy - xAvg * y) / denom;
|