Searched defs:frac (Results 1 - 25 of 58) sorted by relevance

123

/external/curl/src/
H A Dtool_cb_prg.c49 double frac; local
85 frac = (double)point / (double)total;
86 percent = frac * 100.0f;
88 num = (int) (((double)barwidth) * frac);
/external/speex/libspeex/
H A Dresample_sse.h57 static inline float interpolate_product_single(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac) { argument
61 __m128 f = _mm_loadu_ps(frac);
100 static inline double interpolate_product_double(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac) { argument
106 __m128 f = _mm_loadu_ps(frac);
H A Dmath_approx.h253 spx_word16_t frac; local
259 frac = SHL16(x-SHL16(integer,11),3);
260 frac = ADD16(D0, MULT16_16_Q14(frac, ADD16(D1, MULT16_16_Q14(frac, ADD16(D2 , MULT16_16_Q14(D3,frac))))));
261 return VSHR32(EXTEND32(frac), -integer-2);
/external/webp/src/dsp/
H A Drescaler.c81 const rescaler_t frac = base * (-accum); local
82 wrk->frow[x_out] = sum * wrk->x_sub - frac;
84 sum = (int)MULT_FIX(frac, wrk->fx_scale);
138 const uint32_t frac = (uint32_t)MULT_FIX(frow[x_out], yscale); local
139 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale);
142 irow[x_out] = frac; // new fractional start
H A Drescaler_mips32.c39 int base, frac, sum; local
60 "mul %[frac], %[base], %[accum1] \n\t"
64 "maddu %[frac], %[fx_scale] \n\t"
66 "subu %[temp3], %[temp3], %[frac] \n\t"
71 [sum]"=&r"(sum), [base]"=&r"(base), [frac]"=&r"(frac),
98 int frac; local
134 [x_out]"+r"(x_out), [frac]"=&r"(frac), [frow]"+r"(frow)
H A Drescaler_mips_dsp_r2.c108 const uint32_t frac = (uint32_t)MULT_FIX(*frow++, yscale); local
109 const int v = (int)MULT_FIX(*irow - frac, wrk->fxy_scale);
112 *irow++ = frac; // new fractional start
H A Drescaler_neon.c147 const uint32_t frac = (uint32_t)MULT_FIX_C(frow[x_out], yscale); local
148 const int v = (int)MULT_FIX_C(irow[x_out] - frac, wrk->fxy_scale);
151 irow[x_out] = frac; // new fractional start
H A Drescaler_msa.c343 const uint32_t frac = (uint32_t)MULT_FIX(frow[x_out], yscale); local
344 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale);
347 irow[x_out] = frac;
H A Drescaler_sse2.c148 const __m128i frac = _mm_unpacklo_epi16(frac0, frac1); // frac is 32b local
152 const __m128i frow_out = _mm_sub_epi32(B0, frac); // sum * x_sub - frac
153 const __m128i D0 = _mm_srli_epi64(frac, 32);
154 const __m128i D1 = _mm_mul_epu32(frac, mult1); // 32b x 16b -> 64b
313 const __m128i D0 = _mm_srli_epi64(C0, WEBP_RESCALER_RFIX); // = frac
317 const __m128i E0 = _mm_sub_epi64(A0, D0); // irow[x] - frac
331 const uint32_t frac = (int)MULT_FIX(frow[x_out], yscale); local
332 const int v = (int)MULT_FIX(irow[x_out] - frac, wr
[all...]
/external/webrtc/webrtc/modules/audio_processing/ns/
H A Dnsx_core_c.c35 int16_t tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac, intPart; local
103 frac = (int16_t)(tmp32no1 & 0x00003fff); // Q14
104 tmp16no2 += (int16_t)((tmp16no1 * frac) >> 14);
135 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
136 tmp16no2 += (int16_t)((tmp16no1 * frac) >> 14);
182 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
184 tmp16no1, frac, 14);
228 frac = (int16_t)(tmp32no1 & 0x00000fff); // Q12
230 // Quadratic approximation of 2^frac
231 tmp32no2 = (frac * fra
[all...]
H A Dnsx_core_mips.c34 int16_t tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac; local
138 frac = (int16_t)(tmp32no1 & 0x00003fff); // Q14
139 tmp16no2 += (int16_t)((tmp16no1 * frac) >> 14);
170 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
171 tmp16no2 += (int16_t)((tmp16no1 * frac) >> 14);
217 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
219 tmp16no1, frac, 14);
/external/aac/libFDK/include/
H A Dfixpoint_math.h152 USHORT frac=(y>>10)&0xffff; local
153 USHORT nfrac=0xffff^frac;
154 UINT t=nfrac*sqrt_tab[idx]+frac*sqrt_tab[idx+1];
180 USHORT frac=(y>>10)&0xffff; local
181 USHORT nfrac=0xffff^frac;
182 UINT t=nfrac*sqrt_tab[idx]+frac*sqrt_tab[idx+1];
/external/deqp/framework/common/
H A DtcuFloatFormat.cpp101 const double frac = deFractExp(deAbs(x), &exp); local
103 if (deIsNaN(frac))
105 else if (deIsInf(frac))
107 else if (frac == 1.0)
113 else if (frac == 0.0)
144 const double frac = deFractExp(d, &exp); local
146 const double shiftFrac = deLdExp(frac, shift);
237 const double frac = deFractExp(deAbs(x), &exp); local
239 const deUint64 bits = deUint64(deLdExp(frac, shift));
/external/dhcpcd-6.8.2/
H A Dauth.c442 double frac; local
448 frac = ((double)ts.tv_nsec / 1e9 * 0x100000000ULL);
449 pack[1] = htonl((uint32_t)frac);
/external/libopus/celt/
H A Dcwrs.c42 with frac bits of fractional precision.
43 Tested for all possible 32-bit inputs with frac=4, where the maximum
45 int log2_frac(opus_uint32 val, int frac) argument
55 l=(l-1)<<frac;
61 l+=b<<frac;
65 while(frac-->0);
70 else return (l-1)<<frac;
H A Dmathops.h101 float frac; local
109 frac = in.f - 1.5f;
110 frac = -0.41445418f + frac*(0.95909232f
111 + frac*(-0.33951290f + frac*0.16541097f));
112 return 1+integer+frac;
119 float frac; local
127 frac = x-integer;
129 res.f = 0.99992522f + frac * (0.6958335
172 opus_val16 n, frac; local
197 opus_val16 frac; local
205 opus_val16 frac; local
[all...]
H A Dquant_bands.c368 opus_int16 frac = 1<<fine_quant[i]; local
379 q2 = (int)floor((error[i+c*m->nbEBands]+.5f)*frac);
381 if (q2 > frac-1)
382 q2 = frac-1;
/external/skia/src/ports/
H A DSkFontMgr_android_parser.h177 T frac = 0; local
194 frac = (frac + (d << N)) / 10; // This requires four bits overhead.
207 frac = -frac;
209 *value = SkLeftShift(n, N) + frac;
/external/syslinux/com32/gpllib/zzjson/
H A Dzzjson_parse.c144 double dval = 0.0, frac = 0.0, fracshft = 10.0; local
181 frac += (double)(c - '0') / fracshft;
215 dval += sign * frac;
/external/icu/icu4c/source/i18n/
H A Dhebrwcal.cpp398 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # local
399 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation
400 frac = frac % DAY_PARTS; // Time of day
409 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) {
415 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) {
/external/python/cpython2/Modules/
H A Dtimemodule.c942 double frac; local
943 frac = fmod(secs, 1.0);
946 t.tv_usec = (long)(frac*1000000.0);
/external/valgrind/coregrind/
H A Dm_debuglog.c1049 Double frac = val - ipval; local
1060 ULong frval = frac * factor;
1061 if ((frac * factor - frval) > 0.5) // round up
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/
H A Dpitch_estimator.c27 int16_t frac; local
30 frac = (int16_t)(((x << zeros) & 0x7FFFFFFF) >> 23);
33 return ((31 - zeros) << 8) + frac;
/external/webrtc/webrtc/modules/rtp_rtcp/source/
H A Dreceive_statistics_impl.cc313 uint32_t* frac) const {
316 *frac = last_receive_time_ntp_.fractions();
429 uint32_t frac; local
430 it->second->LastReceiveTimeNtp(&secs, &frac);
432 Clock::NtpToMs(secs, frac) < kStatisticsTimeoutMs) {
/external/aac/libFDK/src/
H A Dfixpoint_math.cpp291 FIXP_SGL frac = (FIXP_SGL)(LONG)(x & 0x3FF); local
300 UINT lookup3f = lookup3 + (UINT)(LONG)fMultDiv2((FIXP_DBL)(0x0016302F),(FIXP_SGL)frac);

Completed in 1371 milliseconds

123