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

12345

/external/clang/test/CodeGen/
H A Duint128_t.c5 extern uint64_t denom;
14 tmp /= denom;
/external/chromium_org/third_party/skia/experimental/Intersection/
H A DExtrema.cpp10 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 DLineIntersection.cpp21 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/skia/experimental/Intersection/
H A DExtrema.cpp10 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 DLineIntersection.cpp21 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/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_format_rgb9e5.h108 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/mesa3d/src/gallium/auxiliary/util/
H A Du_format_rgb9e5.h108 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/skia/include/core/
H A DSkMath.h44 * 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/skia/include/core/
H A DSkMath.h44 * 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/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);
/external/chromium_org/third_party/webrtc/modules/video_coding/utility/
H A Dframe_dropper.cc239 float denom = 1.0f - _dropRatio.Value();
240 if (denom < 1e-5)
242 denom = (float)1e-5;
244 int32_t limit = static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f);
282 float denom = _dropRatio.Value();
283 if (denom < 1e-5)
285 denom = (float)1e-5;
287 int32_t limit = -static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f);
/external/chromium_org/third_party/skia/src/core/
H A DSkMath.cpp71 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 DSkMath.cpp71 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/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/
H A Dsmooth.c36 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;
/external/chromium_org/third_party/mesa/src/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/compiler-rt/test/builtins/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/chromium_org/third_party/skia/src/pathops/
H A DSkDLineIntersection.cpp19 double denom = byLen * axLen - ayLen * bxLen; local
20 SkASSERT(denom);
24 p.fX = (term1 * bxLen - axLen * term2) / denom;
25 p.fY = (term1 * byLen - ayLen * term2) / denom;
69 /* Slopes match when denom goes to zero:
73 byLen * axLen - ayLen * bxLen == 0 ( == denom )
75 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; local
80 if (!between(0, numerA, denom) || !between(0, numerB, denom)) {
85 numerA /= denom;
150 double denom = axByLen - ayBxLen; local
[all...]
/external/skia/src/pathops/
H A DSkDLineIntersection.cpp19 double denom = byLen * axLen - ayLen * bxLen; local
20 SkASSERT(denom);
24 p.fX = (term1 * bxLen - axLen * term2) / denom;
25 p.fY = (term1 * byLen - ayLen * term2) / denom;
69 /* Slopes match when denom goes to zero:
73 byLen * axLen - ayLen * bxLen == 0 ( == denom )
75 double denom = bLen.fY * aLen.fX - aLen.fY * bLen.fX; local
80 if (!between(0, numerA, denom) || !between(0, numerB, denom)) {
85 numerA /= denom;
150 double denom = axByLen - ayBxLen; local
[all...]
/external/chromium_org/third_party/webrtc/system_wrappers/source/
H A Dtick_util.cc73 if (timebase.denom == 0) {
88 result.ticks_ = mach_absolute_time() * timebase.numer / timebase.denom;
/external/chromium_org/ui/gfx/
H A Dskbitmap_operations.cc372 const int32_t denom = 65536; local
373 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom);
389 // Use denom * L to avoid rounding.
390 int32_t denom_l = (vmax + vmin) * (denom / 2);
393 r = (denom_l + r * s_numer - s_numer_l) / denom;
394 g = (denom_l + g * s_numer - s_numer_l) / denom;
395 b = (denom_l + b * s_numer - s_numer_l) / denom;
409 // Can't be too big since we need room for denom*denom and a bit for sign.
410 const int32_t denom local
449 const int32_t denom = 1024; local
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
H A DFloatPoint.cpp117 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/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/chromium_org/third_party/skia/tests/
H A DMathTest.cpp472 SkFixed denom = rand.nextS(); local
473 SkFixed result = SkFixedDiv(numer, denom);
474 int64_t check = ((int64_t)numer << 16) / denom;
477 (void)SkCLZ(denom);
540 T denom; member in struct:__anon14649
554 const T denom = kEdgeCases[i].denom; local
556 SkTDivMod(numer, denom, &div, &mod);
557 REPORTER_ASSERT(r, numer/denom == div);
558 REPORTER_ASSERT(r, numer%denom
564 T denom = 0; local
[all...]

Completed in 744 milliseconds

12345