/external/compiler-rt/lib/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/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/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 | Sk64.cpp | 201 void Sk64::div(int32_t denom, DivOptions option) argument 203 SkASSERT(denom); 207 int sign = denom ^ hi; 209 denom = SkAbs32(denom); 216 if (option == kRound_DivOption) // add denom/2 218 uint32_t newLo = lo + (denom >> 1); 225 if (lo < (uint32_t)denom) 229 this->set(0, lo / denom); 239 int dbits = SkCLZ(denom); [all...] |
H A D | SkGeometry.cpp | 105 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) argument 112 denom = -denom; 115 if (denom == 0 || numer == 0 || numer >= denom) 118 SkScalar r = SkScalarDiv(numer, denom); 123 if (r == 0) // catch underflow if numer <<<< denom 409 Sk64 numer, denom, tmp; 417 denom.setMul(Bx, Bx); 419 denom [all...] |
H A D | SkMath.cpp | 70 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { argument 71 SkASSERT(denom); 75 tmp.div(denom, Sk64::kTrunc_DivOption); 256 if ((numer = (numer << 1) - denom) >= 0) \ 257 result |= 1 << (n - 1); else numer += denom 259 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { argument 260 SkASSERT(denom != 0); 265 // make numer and denom positive, and sign hold the resulting sign 266 int32_t sign = SkExtractSign(numer ^ denom); 268 denom 323 SkFixedMod(SkFixed numer, SkFixed denom) argument [all...] |
/external/skia/tests/ |
H A D | Sk64Test.cpp | 157 int32_t denom = rand.nextS(); local 159 while (denom == 0) 160 denom = rand.nextS(); 164 wide.div(denom, Sk64::kTrunc_DivOption); 165 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",
|
H A D | MathTest.cpp | 440 SkFixed denom = rand.nextS(); local 441 SkFixed result = SkFixedDiv(numer, denom); 442 SkLONGLONG check = ((SkLONGLONG)numer << 16) / denom; 445 (void)SkCLZ(denom); 455 result = SkFractDiv(numer, denom); 456 check = ((SkLONGLONG)numer << 30) / denom; 468 denom = denom << 8 >> 8; 470 result = SkFixedMul(numer, denom); 471 SkFixed r2 = symmetric_fixmul(numer, denom); [all...] |
/external/libvorbis/lib/ |
H A D | lsp.c | 321 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...] |
H A D | floor1.c | 508 double denom=(bn*x2b-xb*xb); local 510 if(denom>0.){ 511 double a=(yb*x2b-xyb*xb)/denom; 512 double b=(bn*xyb-xb*yb)/denom;
|
/external/webrtc/src/modules/audio_processing/aec/ |
H A D | aec_resampler.c | 179 float denom = 0; local 225 denom = x2 - xAvg*x; 227 if (denom != 0) { 228 skew = (xy - xAvg*y) / denom;
|
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
H A D | BoundingBox.java | 848 * @param denom
856 private boolean clip(float denom, float numer, float[] t) {
argument 860 if (denom > 0.0f) {
861 if (numer > denom * t[1]) {
864 if (numer > denom * t[0]) {
865 t[0] = numer / denom;
868 } else if (denom < 0.0f) {
869 if (numer > denom * t[0]) {
872 if (numer > denom * t[1]) {
873 t[1] = numer / denom;
[all...] |
/external/skia/src/gpu/ |
H A D | GrAAConvexPathRenderer.cpp | 87 SkScalar denom = SK_Scalar1 / count; local 88 avg.scale(denom);
|
/external/skia/src/utils/ |
H A D | SkCamera.cpp | 14 SkScalar denom) { 22 return prod / denom; 33 prod.div(denom, Sk64::kRound_DivOption); 12 SkScalarDotDiv(int count, const SkScalar a[], int step_a, const SkScalar b[], int step_b, SkScalar denom) argument
|
/external/srec/srec/clib/ |
H A D | swicms.c | 493 imeldata denom = ( swicms->inutt.forget_factor2 local 497 + swicms->inutt.accum[ii] + denom/2) / denom;
|
/external/aac/libFDK/src/ |
H A D | fixpoint_math.cpp | 529 FIXP_DBL fDivNorm(FIXP_DBL num, FIXP_DBL denom) argument 534 FDK_ASSERT (denom >= num); 536 res = fDivNorm(num, denom, &e); 554 FIXP_DBL fDivNormHighPrec(FIXP_DBL num, FIXP_DBL denom, INT *result_e) argument 560 FDK_ASSERT (denom > (FIXP_DBL)0); 573 norm_den = CountLeadingBits(denom); 574 denom = denom << norm_den; 577 div = schur_div(num, denom, 31);
|
/external/iproute2/lib/ |
H A D | utils.c | 500 unsigned nom, denom; local 501 if (fscanf(fp, "%*08x%*08x%08x%08x", &nom, &denom) == 2) 503 hz = denom;
|
/external/quake/quake/src/QW/client/ |
H A D | mathlib.c | 493 numer and denom, both of which should contain no fractional part. The 498 void FloorDivMod (double numer, double denom, int *quotient, argument 505 if (denom <= 0.0) 506 Sys_Error ("FloorDivMod: bad denominator %d\n", denom); 508 // if ((floor(numer) != numer) || (floor(denom) != denom)) 509 // Sys_Error ("FloorDivMod: non-integer numer or denom %f %f\n", 510 // numer, denom); 516 x = floor(numer / denom); 518 r = (int)floor(numer - (x * denom)); [all...] |
/external/quake/quake/src/WinQuake/ |
H A D | mathlib.cpp | 495 numer and denom, both of which should contain no fractional part. The
500 void FloorDivMod (double numer, double denom, int *quotient,
argument 507 if (denom <= 0.0)
508 Sys_Error ("FloorDivMod: bad denominator %d\n", denom);
510 // if ((floor(numer) != numer) || (floor(denom) != denom))
511 // Sys_Error ("FloorDivMod: non-integer numer or denom %f %f\n",
512 // numer, denom);
518 x = floor(numer / denom);
520 r = (int)floor(numer - (x * denom));
[all...] |
/external/aac/libMpegTPDec/src/ |
H A D | tpdec_lib.cpp | 864 int num, denom; local 868 denom = hTp->avgBitRate * hTp->asc[0].m_samplesPerFrame; 870 nAU = num / denom; 871 hTp->remainder = num % denom; 881 if ( (denom - hTp->remainder) >= hTp->remainder ) {
|
/external/jhead/ |
H A D | jhead.h | 71 uint32_t denom; member in struct:__anon6531
|
/external/libvpx/vp8/encoder/ |
H A D | onyx_if.c | 1445 rescale(int val, int num, int denom) argument 1448 int64_t llden = denom;
|
/external/mesa3d/include/c99/ |
H A D | inttypes.h | 280 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) argument 284 result.quot = numer / denom; 285 result.rem = numer % denom; 290 result.rem -= denom;
|
/external/opencv/cv/src/ |
H A D | cvfundam.cpp | 135 double num, denom; local 147 denom = 1. - pow(1. - ep,model_points); 148 if( denom < DBL_MIN ) 152 denom = log(denom); 154 result = denom >= 0 || -num >= max_iters*(-denom) ? 155 max_iters : cvRound(num/denom); 1194 CvMat* denom = 0; local 1336 CV_CALL( denom [all...] |