/external/clang/test/CodeGen/ |
H A D | uint128_t.c | 5 extern uint64_t denom; 14 tmp /= denom;
|
/external/skia/src/core/ |
H A D | SkMath.cpp | 50 if ((numer = (numer << 1) - denom) >= 0) \ 51 result |= 1 << (n - 1); else numer += denom 53 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { argument 54 SkASSERT(denom != 0); 59 // make numer and denom positive, and sign hold the resulting sign 60 int32_t sign = SkExtractSign(numer ^ denom); 62 denom = SkAbs32(denom); 65 int dbits = SkCLZ(denom) - 1; 75 denom << [all...] |
/external/mesa3d/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/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); 211 * Stores numer/denom and numer%denom int 214 SkTDivMod(In numer, In denom, Out* div, Out* mod) argument [all...] |
H A D | SkFixed.h | 81 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16)
|
/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 | sbr_misc.h | 104 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom, FIXP_DBL scale);
|
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/compiler-rt/test/builtins/timing/ |
H A D | timing.h | 23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.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/libvncserver/common/ |
H A D | turbojpeg.h | 267 int denom; member in struct:__anon9198 288 + scalingFactor.denom - 1) / scalingFactor.denom)
|
/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...] |
/external/jemalloc/include/msvc_compat/C99/ |
H A D | inttypes.h | 288 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) argument 292 result.quot = numer / denom; 293 result.rem = numer % denom; 298 result.rem -= denom;
|
/external/libvncserver/x11vnc/ |
H A D | screen.h | 51 int *nomult4, int *pad, int *interpolate, int *numer, int *denom, int w_in, int h_in);
|
/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/libcxx/src/ |
H A D | chrono.cpp | 55 // mach_absolute_time() * MachInfo.numer / MachInfo.denom is the number of 56 // nanoseconds since the computer booted up. MachInfo.numer and MachInfo.denom 60 // MachInfo.numer / MachInfo.denom is often 1 on the latest equipment. Specialize 78 return static_cast<double>(MachInfo.numer) / MachInfo.denom; 97 if (MachInfo.numer == MachInfo.denom)
|
/external/skia/src/pathops/ |
H A D | SkDLineIntersection.cpp | 38 /* Slopes match when denom goes to zero: 42 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 44 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; local 48 numerA /= denom; 49 numerB /= denom; 51 if (!approximately_zero(denom)) { 96 /* Slopes match when denom goes to zero: 100 byLen * axLen - ayLen * bxLen == 0 ( == denom ) 113 double denom = axByLen - ayBxLen; local 114 if (between(0, numerA, denom) [all...] |
H A D | SkPathOpsLine.cpp | 66 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 69 if (!between(0, numer, denom)) { 72 double t = numer / denom; 93 double denom = len.fX * len.fX + len.fY * len.fY; // see DLine intersectRay local 96 double t = numer / denom;
|
H A D | SkPathOpsQuad.cpp | 297 static int valid_unit_divide(double numer, double denom, double* ratio) argument 301 denom = -denom; 303 if (denom == 0 || numer == 0 || numer >= denom) { 306 double r = numer / denom; 307 if (r == 0) { // catch underflow if numer <<<< denom
|
/external/skia/bench/ |
H A D | bench_util.py | 289 denom = n*Sxx - Sx*Sx 290 if (denom != 0.0): 291 B = (n*Sxy - Sx*Sy) / denom 299 if (n >= 3 and denom != 0.0): 300 se2 = (1.0/(n*(n-2)) * (n*Syy - Sy*Sy - B*B*denom)) 301 sB2 = (n*se2) / denom
|
/external/skia/tests/ |
H A D | MathTest.cpp | 527 SkFixed denom = rand.nextS(); local 528 SkFixed result = SkFixedDiv(numer, denom); 529 int64_t check = ((int64_t)numer << 16) / denom; 532 (void)SkCLZ(denom); 541 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); 598 T denom; member in struct:__anon14134 612 const T denom = kEdgeCases[i].denom; local 614 SkTDivMod(numer, denom, &div, &mod); 615 REPORTER_ASSERT(r, numer/denom 622 T denom = 0; local [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/tools/timer/ |
H A D | SysTimer_mach.cpp | 63 uint64_t elapsedNano = elapsed * sTimebaseInfo.numer / sTimebaseInfo.denom;
|
/external/jdiff/src/jdiff/ |
H A D | APIComparator.java | 123 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/apache-commons-math/src/main/java/org/apache/commons/math/optimization/univariate/ |
H A D | BracketFinder.java | 153 double denom = Math.abs(val) < EPS_MIN ? 2 * EPS_MIN : 2 * val; 155 double w = xB - ((xB - xC) * tmp2 - (xB -xA) * tmp1) / denom;
|