Searched refs:denom (Results 1 - 25 of 52) sorted by relevance

123

/external/clang/test/CodeGen/
H A Duint128_t.c5 extern uint64_t denom;
14 tmp /= denom;
/external/skia/src/core/
H A DSk64.cpp201 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 DSkMath.cpp70 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...]
H A DSkMatrix.cpp296 static inline SkFixed roundidiv(SkFixed numer, int denom) { argument
298 int ds = denom >> 31;
300 denom = (denom ^ ds) - ds;
302 SkFixed answer = (numer + (denom >> 1)) / denom;
778 SkFixed denom; local
780 denom = tmp1.getShiftRight(33 - s);
782 denom = (int32_t)tmp1.fLo << (s - 33);
785 if (denom
1439 SkFixed denom = SkMulDiv(x1, y2, x2) - y1; local
1445 SkFixed denom = x1 - SkMulDiv(y1, x2, y2); local
1454 SkFixed denom = y2 - SkMulDiv(x2, y1, x1); local
1460 SkFixed denom = SkMulDiv(y2, x1, y1) - x2; local
1572 float denom = SkScalarMulDiv(x1, y2, x2) - y1; local
1578 float denom = x1 - SkScalarMulDiv(y1, x2, y2); local
1587 float denom = y2 - SkScalarMulDiv(x2, y1, x1); local
1593 float denom = SkScalarMulDiv(y2, x1, y1) - x2; local
[all...]
H A DSkColor.cpp29 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { argument
31 return SkIntToScalar(numer) / (int)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 Dsbr_misc.h104 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom, FIXP_DBL scale);
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/compiler-rt/test/timing/
H A Dtiming.h23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom);
/external/mesa3d/include/c99/
H A Dinttypes.h280 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/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/webrtc/src/modules/audio_processing/aec/
H A Daec_resampler.c179 float denom = 0; local
225 denom = x2 - xAvg*x;
227 if (denom != 0) {
228 skew = (xy - xAvg*y) / denom;
/external/skia/include/core/
H A DSkFixed.h130 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16)
131 SkFixed SkFixedDivInt(int32_t numer, int32_t denom);
132 SkFixed SkFixedMod(SkFixed numer, SkFixed denom);
139 #define SkFractDiv(numer, denom) SkDivBits(numer, denom, 30)
H A DSkMath.h24 /** Computes numer1 * numer2 / denom in full 64 intermediate precision.
25 It is an error for denom to be 0. There is no special handling if
28 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom);
30 /** Computes (numer1 << shift) / denom in full 64 intermediate precision.
31 It is an error for denom to be 0. There is no special handling if
34 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
/external/skia/tests/
H A DMathTest.cpp440 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...]
H A DSk64Test.cpp157 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",
/external/chromium/base/
H A Dtime_mac.cc108 if (timebase_info.denom == 0) {
109 // Zero-initialization of statics guarantees that denom will be 0 before
110 // calling mach_timebase_info. mach_timebase_info will never set denom to
125 timebase_info.numer / timebase_info.denom;
128 // With numer and denom = 1 (the expected case), the 64-bit absolute time
/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/skia/bench/
H A DBenchSysTimer_mach.cpp73 / sTimebaseInfo.denom;
/external/aac/libFDK/src/
H A Dfixpoint_math.cpp529 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/jdiff/src/jdiff/
H A DAPIComparator.java123 Long denom = new Long(oldAPI.packages_.size() + newAPI.packages_.size());
125 if (denom.intValue() == 0) {
130 System.out.println("Top level changes: " + differs + "/" + denom.intValue());
131 differs = (100.0 * differs)/denom.doubleValue();
226 Long denom = new Long(oldPkg.classes_.size() + newPkg.classes_.size());
228 if (denom.intValue() == 0) {
233 System.out.println("Package " + pkgDiff.name_ + " had a difference of " + differs + "/" + denom.intValue());
234 pkgDiff.pdiff = 100.0 * differs/denom.doubleValue();
235 return differs/denom.doubleValue();
326 Long denom
[all...]
/external/quake/quake/src/QW/client/
H A Dmathlib.c493 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 Dmathlib.cpp495 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/skia/src/effects/
H A DSkEmbossMask.cpp116 if (numer > 0) { // preflight when numer/denom will be <= 0
118 int denom = SkSqrt32(nx * nx + ny * ny + kDelta*kDelta);
119 SkFixed dot = numer / denom;
/external/opencv/cv/src/
H A Dcvfundam.cpp135 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...]

Completed in 435 milliseconds

123