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

1 2 3 4 5 6 7 8 9

  /external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
TJScalingFactor.java 36 public TJScalingFactor(int num, int denom) throws Exception {
37 if (num < 1 || denom < 1)
40 this.denom = denom;
58 return denom;
69 return (dimension * num + denom - 1) / denom;
80 return (this.num == other.num && this.denom == other.denom);
91 return (num == 1 && denom == 1)
102 private int denom = 1; field in class:TJScalingFactor
    [all...]
  /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;
  /bionic/libc/upstream-openbsd/lib/libc/stdlib/
imaxdiv.c 37 imaxdiv(intmax_t num, intmax_t denom)
43 r.quot = num / denom;
44 r.rem = num % denom;
47 r.rem -= denom;
  /external/libjpeg-turbo/doc/html/search/
all_64.js 4 ['denom',['denom',['../structtjscalingfactor.html#aefbcdf3e9e62274b2d312c695f133ce3',1,'tjscalingfactor']]]
variables_64.js 4 ['denom',['denom',['../structtjscalingfactor.html#aefbcdf3e9e62274b2d312c695f133ce3',1,'tjscalingfactor']]]
  /external/clang/test/CodeGen/
uint128_t.c 5 extern uint64_t denom;
14 tmp /= denom;
  /ndk/sources/android/support/src/
stdlib_support.c 47 imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom)
51 retval.quot = numer / denom;
52 retval.rem = numer % denom;
55 retval.rem -= denom;
  /device/google/contexthub/firmware/src/cpu/cortexm4f/
cpuMath.c 45 //this will be specialized for both cases (compiler can use denom being 32-bit long easily)
49 if (denom <= 1) \
53 try = (ret + 1) * denom; \
54 if (try <= num && try >= ret * denom) \
59 uint64_t cpuMathRecipAssistedUdiv64by64(uint64_t num, uint64_t denom, uint64_t denomRecip)
64 uint64_t cpuMathRecipAssistedUdiv64by32(uint64_t num, uint32_t denom, uint64_t denomRecip)
  /prebuilts/go/darwin-x86/test/bench/shootout/
pidigits.c 41 static mpz_t numer, accum, denom, tmp1, tmp2; variable
48 /* Compute (numer * 3 + accum) / denom */
52 mpz_fdiv_qr(tmp1, tmp2, tmp1, denom);
54 /* Now, if (numer * 4 + accum) % denom... */
58 if (mpz_cmp(tmp2, denom) >= 0)
72 mpz_mul_ui(denom, denom, y2);
77 mpz_submul_ui(accum, denom, d);
90 mpz_init_set_ui(denom, 1);
pidigits.go 57 denom = big.NewInt(1)
66 // Compute (numer * 3 + accum) / denom
70 tmp1.DivMod(tmp1, denom, tmp2)
72 // Now, if (numer * 4 + accum) % denom...
76 if tmp2.Cmp(denom) >= 0 {
91 denom.Mul(denom, y2)
96 accum.Sub(accum, tmp3.Mul(denom, tmp3))
  /prebuilts/go/linux-x86/test/bench/shootout/
pidigits.c 41 static mpz_t numer, accum, denom, tmp1, tmp2; variable
48 /* Compute (numer * 3 + accum) / denom */
52 mpz_fdiv_qr(tmp1, tmp2, tmp1, denom);
54 /* Now, if (numer * 4 + accum) % denom... */
58 if (mpz_cmp(tmp2, denom) >= 0)
72 mpz_mul_ui(denom, denom, y2);
77 mpz_submul_ui(accum, denom, d);
90 mpz_init_set_ui(denom, 1);
pidigits.go 57 denom = big.NewInt(1)
66 // Compute (numer * 3 + accum) / denom
70 tmp1.DivMod(tmp1, denom, tmp2)
72 // Now, if (numer * 4 + accum) % denom...
76 if tmp2.Cmp(denom) >= 0 {
91 denom.Mul(denom, y2)
96 accum.Sub(accum, tmp3.Mul(denom, tmp3))
  /external/opencv3/3rdparty/openexr/IlmImf/
ImfRational.cpp 67 denom (double x, double e) function in namespace:Imf::__anon21108
83 return denom (frac (1 / r, e), e / square (x * r)) +
84 floor (1 / x + e) * denom (frac (1 / x, e), e / square (x));
120 d = (unsigned int) denom (x, e);
  /external/skia/src/core/
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) {
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 <<= dbits
    [all...]
  /external/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);
183 * Stores numer/denom and numer%denom into div and mod respectively
    [all...]
  /bionic/libm/upstream-freebsd/lib/msun/src/
s_ctanh.c 78 double t, beta, s, rho, denom; local
134 denom = 1 + beta * s * s;
135 return (CMPLX((beta * rho * s) / denom, t / denom));
s_ctanhf.c 43 float t, beta, s, rho, denom; local
74 denom = 1 + beta * s * s;
75 return (CMPLXF((beta * rho * s) / denom, t / denom));
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/include/isl/
lp.h 30 isl_int *f, isl_int denom, isl_int *opt,
34 isl_int *f, isl_int denom, isl_int *opt,
38 isl_int *f, isl_int denom, isl_int *opt,
42 isl_int *f, isl_int denom, isl_int *opt,
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/include/isl/
lp.h 30 isl_int *f, isl_int denom, isl_int *opt,
34 isl_int *f, isl_int denom, isl_int *opt,
38 isl_int *f, isl_int denom, isl_int *opt,
42 isl_int *f, isl_int denom, isl_int *opt,
  /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/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);
  /external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
smooth.c 36 int32_t B_W32, denom, num; local
137 /* denom is in Q16 */
138 denom = WebRtcSpl_DivW32W16(endiff, (int16_t)(w00w00 >> 16));
140 denom = 65536;
143 if( denom > 7){ /* eliminates numerical problems
146 scale=WebRtcSpl_GetSizeInBits(denom)-15;
150 denomW16 = (int16_t)(denom >> scale);
156 denomW16=(int16_t)denom;
  /external/webrtc/webrtc/system_wrappers/source/
tick_util.cc 36 timebase_from_millisecond_fract = (timebase.denom * 1e6) / timebase.numer;
55 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e6);
74 timebase_microsecond_fract = timebase.numer / (timebase.denom * 1e3);

Completed in 564 milliseconds

1 2 3 4 5 6 7 8 9