HomeSort by relevance Sort by last modified time
    Searched refs:denom (Results 1 - 25 of 128) sorted by null

1 2 3 4 5 6

  /bionic/libc/upstream-freebsd/lib/libc/stdlib/
imaxdiv.c 34 imaxdiv(intmax_t numer, intmax_t denom)
38 retval.quot = numer / denom;
39 retval.rem = numer % denom;
42 retval.rem -= denom;
  /bionic/libc/upstream-netbsd/lib/libc/stdlib/
div.c 47 div(int num, int denom)
51 r.quot = num / denom;
52 r.rem = num % denom;
62 * r.rem will have the same sign as denom and the opposite
68 * If both are num and denom are positive, r will always
74 * subtract denom from r.rem.
78 r.rem -= denom;
ldiv.c 47 ldiv(long num, long denom)
53 r.quot = num / denom;
54 r.rem = num % denom;
57 r.rem -= denom;
lldiv.c 53 lldiv(long long int num, long long int denom)
59 r.quot = num / denom;
60 r.rem = num % denom;
63 r.rem -= denom;
  /external/clang/test/CodeGen/
uint128_t.c 5 extern uint64_t denom;
14 tmp /= denom;
  /external/chromium_org/third_party/skia/experimental/Intersection/
Extrema.cpp 10 static int validUnitDivide(double numer, double denom, double* ratio)
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
  /bionic/libm/upstream-freebsd/lib/msun/src/
s_ctanh.c 78 double t, beta, s, rho, denom; local
133 denom = 1 + beta * s * s;
134 return (cpack((beta * rho * s) / denom, t / denom));
s_ctanhf.c 43 float t, beta, s, rho, denom; local
73 denom = 1 + beta * s * s;
74 return (cpackf((beta * rho * s) / denom, t / denom));
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
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/mesa3d/src/gallium/auxiliary/util/
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/chromium_org/third_party/skia/include/core/
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) {
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 into div and mod respectively
    [all...]
  /external/aac/libSBRenc/src/
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)
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);
sbr_misc.h 104 FIXP_DBL FDKsbrEnc_LSI_divide_scale_fract(FIXP_DBL num, FIXP_DBL denom, FIXP_DBL scale);
  /external/chromium_org/third_party/skia/src/core/
SkMath.cpp 71 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) {
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 <<= dbits
    [all...]
  /external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/
smooth.c 36 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/
inttypes.h 280 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
284 result.quot = numer / denom;
285 result.rem = numer % denom;
290 result.rem -= denom;
  /external/compiler-rt/test/builtins/timing/
timing.h 23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom);
  /external/mesa3d/include/c99/
inttypes.h 280 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
284 result.quot = numer / denom;
285 result.rem = numer % denom;
290 result.rem -= denom;
  /external/chromium_org/third_party/skia/src/pathops/
SkDLineIntersection.cpp 19 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/media/formats/mp4/
track_run_iterator.h 24 base::TimeDelta MEDIA_EXPORT TimeDeltaFromRational(int64 numer, int64 denom);
26 int64 denom);
  /external/chromium_org/third_party/webrtc/modules/video_coding/utility/
frame_dropper.cc 242 float denom = 1.0f - _dropRatio.filtered();
243 if (denom < 1e-5)
245 denom = (float)1e-5;
247 int32_t limit = static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f);
286 float denom = _dropRatio.filtered();
287 if (denom < 1e-5)
289 denom = (float)1e-5;
291 int32_t limit = -static_cast<int32_t>(1.0f / denom - 1.0f + 0.5f);
  /external/chromium_org/third_party/webrtc/system_wrappers/source/
tick_util.cc 73 if (timebase.denom == 0) {
88 result.ticks_ = mach_absolute_time() * timebase.numer / timebase.denom;
  /external/chromium_org/ui/gfx/
skbitmap_operations.cc 340 const int32_t denom = 65536; local
341 int32_t s_numer = static_cast<int32_t>(hsl_shift.s * 2 * denom);
357 // Use denom * L to avoid rounding.
358 int32_t denom_l = (vmax + vmin) * (denom / 2);
361 r = (denom_l + r * s_numer - s_numer_l) / denom;
362 g = (denom_l + g * s_numer - s_numer_l) / denom;
363 b = (denom_l + b * s_numer - s_numer_l) / denom;
377 // Can't be too big since we need room for denom*denom and a bit for sign.
378 const int32_t denom = 1024 local
417 const int32_t denom = 1024; local
    [all...]
  /cts/apps/CameraITS/pymodules/its/
objects.py 41 def float_to_rational(f, denom=128):
46 denom: (Optonal) the denominator to use in the output rationals.
53 return [{"numerator":math.floor(val*denom+0.5), "denominator":denom}
56 return {"numerator":math.floor(f*denom+0.5), "denominator":denom}
  /external/chromium_org/third_party/WebKit/Source/platform/geometry/
FloatPoint.cpp 117 float denom = pxLength * dyLength - pyLength * dxLength; local
118 if (!denom)
121 float param = ((d1.x() - p1.x()) * dyLength - (d1.y() - p1.y()) * dxLength) / denom;

Completed in 455 milliseconds

1 2 3 4 5 6