/external/skia/src/core/ |
H A D | SkColor.cpp | 53 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { argument 55 return SkIntToScalar(numer) / (int)denom;
|
H A D | Sk64.cpp | 208 void Sk64::div(int32_t denom, DivOptions option) argument 210 SkASSERT(denom); 214 int sign = denom ^ hi; 216 denom = SkAbs32(denom); 223 if (option == kRound_DivOption) // add denom/2 225 uint32_t newLo = lo + (denom >> 1); 232 if (lo < (uint32_t)denom) 236 this->set(0, lo / denom); 246 int dbits = SkCLZ(denom); [all...] |
H A D | SkMath.cpp | 77 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { argument 78 SkASSERT(denom); 82 tmp.div(denom, Sk64::kTrunc_DivOption); 263 if ((numer = (numer << 1) - denom) >= 0) \ 264 result |= 1 << (n - 1); else numer += denom 266 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { argument 267 SkASSERT(denom != 0); 272 // make numer and denom positive, and sign hold the resulting sign 273 int32_t sign = SkExtractSign(numer ^ denom); 275 denom 330 SkFixedMod(SkFixed numer, SkFixed denom) argument [all...] |
H A D | SkGeometry.cpp | 113 static int valid_unit_divide(SkScalar numer, SkScalar denom, SkScalar* ratio) argument 120 denom = -denom; 123 if (denom == 0 || numer == 0 || numer >= denom) 126 SkScalar r = SkScalarDiv(numer, denom); 131 if (r == 0) // catch underflow if numer <<<< denom 417 Sk64 numer, denom, tmp; 425 denom.setMul(Bx, Bx); 427 denom [all...] |
H A D | SkMatrix.cpp | 266 static inline SkFixed roundidiv(SkFixed numer, int denom) { argument 268 int ds = denom >> 31; 270 denom = (denom ^ ds) - ds; 272 SkFixed answer = (numer + (denom >> 1)) / denom; 745 SkFixed denom; local 747 denom = tmp1.getShiftRight(33 - s); 749 denom = (int32_t)tmp1.fLo << (s - 33); 752 if (denom 1397 SkFixed denom = SkMulDiv(x1, y2, x2) - y1; local 1403 SkFixed denom = x1 - SkMulDiv(y1, x2, y2); local 1412 SkFixed denom = y2 - SkMulDiv(x2, y1, x1); local 1418 SkFixed denom = SkMulDiv(y2, x1, y1) - x2; local 1530 float denom = SkScalarMulDiv(x1, y2, x2) - y1; local 1536 float denom = x1 - SkScalarMulDiv(y1, x2, y2); local 1545 float denom = y2 - SkScalarMulDiv(x2, y1, x1); local 1551 float denom = SkScalarMulDiv(y2, x1, y1) - x2; local [all...] |
/external/skia/tests/ |
H A D | Sk64Test.cpp | 150 int32_t denom = rand.nextS(); local 152 while (denom == 0) 153 denom = rand.nextS(); 157 wide.div(denom, Sk64::kTrunc_DivOption); 158 check /= denom; 166 denom = wide.getSqrt(); 168 int diff = denom - ck; 188 SkDebugf(" %d === numer %g denom %g div %g xdiv %x fxdiv %x\n",
|
H A D | MathTest.cpp | 384 SkFixed denom = rand.nextS(); local 385 SkFixed result = SkFixedDiv(numer, denom); 386 SkLONGLONG check = ((SkLONGLONG)numer << 16) / denom; 389 (void)SkCLZ(denom); 399 result = SkFractDiv(numer, denom); 400 check = ((SkLONGLONG)numer << 30) / denom; 412 denom = denom << 8 >> 8; 414 result = SkFixedMul(numer, denom); 415 SkFixed r2 = symmetric_fixmul(numer, denom); [all...] |
/external/webrtc/src/modules/audio_processing/aec/main/source/ |
H A D | resampler.c | 180 float denom = 0; local 227 denom = x2 - xAvg*x; 229 if (denom != 0) { 230 skew = (xy - xAvg*y) / denom;
|
/external/skia/src/utils/ |
H A D | SkCamera.cpp | 22 SkScalar denom) { 30 return prod / denom; 41 prod.div(denom, Sk64::kRound_DivOption); 20 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/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/jhead/ |
H A D | jhead.h | 66 uint32_t denom; member in struct:__anon5440
|
/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...] |
/external/opencv/ml/src/ |
H A D | mlsvm.cpp | 654 double denom = Q_i[i]+Q_j[j]+2*Q_i[j]; local 655 double delta = (-G[i]-G[j])/MAX(fabs(denom),FLT_EPSILON); 684 double denom = Q_i[i]+Q_j[j]-2*Q_i[j]; local 685 double delta = (G[i]-G[j])/MAX(fabs(denom),FLT_EPSILON);
|
/external/icu4c/i18n/ |
H A D | smpdtfmt.cpp | 1206 int32_t num = 0, denom = 0; local 1210 denom = 1000; 1214 denom = 100000; 1216 while (denom >= 1) { 1217 UChar digit = (UChar)0x0030 + (num / denom); 1219 num = num % denom; 1220 denom /= 10;
|