Searched refs:frac (Results 1 - 25 of 55) sorted by relevance

123

/external/chromium_org/third_party/opus/src/celt/
H A Dcwrs.h39 int log2_frac(opus_uint32 val, int frac);
42 void get_required_bits(opus_int16 *bits, int N, int K, int frac);
H A Dmathops.h66 float frac; local
74 frac = in.f - 1.5f;
75 frac = -0.41445418f + frac*(0.95909232f
76 + frac*(-0.33951290f + frac*0.16541097f));
77 return 1+integer+frac;
84 float frac; local
92 frac = x-integer;
94 res.f = 0.99992522f + frac * (0.6958335
157 opus_val16 n, frac; local
183 opus_val16 frac; local
[all...]
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 Dquant_bands.c363 opus_int16 frac = 1<<fine_quant[i]; local
374 q2 = (int)floor((error[i+c*m->nbEBands]+.5f)*frac);
376 if (q2 > frac-1)
377 q2 = frac-1;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DDERGeneralizedTime.java270 String frac = d.substring(14);
272 for (index = 1; index < frac.length(); index++)
274 char ch = frac.charAt(index);
283 frac = frac.substring(0, 4) + frac.substring(index);
284 d = d.substring(0, 14) + frac;
288 frac = frac.substring(0, index) + "00" + frac
[all...]
/external/chromium_org/third_party/simplejson/
H A Dscanner.py54 integer, frac, exp = m.groups()
55 if frac or exp:
56 res = parse_float(integer + (frac or '') + (exp or ''))
/external/speex/libspeex/
H A Dresample.c243 float y, frac; local
248 frac = (y-ind);
250 interp[3] = -0.1666666667*frac + 0.1666666667*(frac*frac*frac);
251 interp[2] = frac + 0.5*(frac*frac) - 0.5*(frac*fra
319 cubic_coef(spx_word16_t frac, spx_word16_t interp[4]) argument
452 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); local
454 const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))/st->den_rate; local
515 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); local
517 const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))/st->den_rate; local
[all...]
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);
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);
/external/valgrind/main/none/tests/ppc32/
H A Dround.c54 unsigned int frac:23; member in struct:__anon27791::__anon27792
132 ** a double left shift the .frac so that hex digits are grouped
137 msg, F.flt, (F.layout.sign == 0 ? '+' : '-'), F.layout.exp, F.layout.frac << 1);
153 (R.layout.frac != E.layout.frac)) {
227 F.layout.frac = 1;
265 (R.layout.frac != E.layout.frac)) {
525 int num, den, frac; member in struct:__anon27796
598 B.layout.frac
[all...]
/external/valgrind/main/none/tests/ppc64/
H A Dround.c54 unsigned int frac:23; member in struct:__anon27834::__anon27835
132 ** a double left shift the .frac so that hex digits are grouped
137 msg, F.flt, (F.layout.sign == 0 ? '+' : '-'), F.layout.exp, F.layout.frac << 1);
153 (R.layout.frac != E.layout.frac)) {
227 F.layout.frac = 1;
265 (R.layout.frac != E.layout.frac)) {
525 int num, den, frac; member in struct:__anon27839
598 B.layout.frac
[all...]
/external/aac/libFDK/include/
H A Dfixpoint_math.h123 USHORT frac=(y>>10)&0xffff; local
124 USHORT nfrac=0xffff^frac;
125 UINT t=nfrac*sqrt_tab[idx]+frac*sqrt_tab[idx+1];
151 USHORT frac=(y>>10)&0xffff; local
152 USHORT nfrac=0xffff^frac;
153 UINT t=nfrac*sqrt_tab[idx]+frac*sqrt_tab[idx+1];
/external/chromium_org/third_party/libwebp/utils/
H A Drescaler.c71 const int32_t frac = base * (-accum); local
73 wrk->frow[x_out] = (sum + base) * wrk->x_sub - frac;
75 sum = (int)MULT_FIX(frac, wrk->fx_scale);
107 const int frac = (int)MULT_FIX(frow[x_out], yscale); local
108 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale);
110 irow[x_out] = frac; // new fractional start
/external/webp/src/utils/
H A Drescaler.c71 const int32_t frac = base * (-accum); local
73 wrk->frow[x_out] = (sum + base) * wrk->x_sub - frac;
75 sum = (int)MULT_FIX(frac, wrk->fx_scale);
107 const int frac = (int)MULT_FIX(frow[x_out], yscale); local
108 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale);
110 irow[x_out] = frac; // new fractional start
/external/chromium_org/third_party/icu/source/i18n/
H A Dhebrwcal.cpp395 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # local
396 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation
397 frac = frac % DAY_PARTS; // Time of day
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) {
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) {
/external/icu4c/i18n/
H A Dhebrwcal.cpp395 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # local
396 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation
397 frac = frac % DAY_PARTS; // Time of day
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) {
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) {
/external/libvorbis/doc/
H A D06-floor0.tex135 \mathrm{bark}\left(\frac{\mathtt{floor0\_rate} \cdot i}{2n}\right) \cdot \frac{\mathtt{floor0\_bark\_map\_size}} {\mathrm{bark}(.5 \cdot \mathtt{floor0\_rate})}
157 p & = & (1 - \cos^2\omega)\prod_{j=0}^{\frac{\mathtt{floor0\_order}-3}{2}} 4 (\cos([\mathtt{coefficients}]_{2j+1}) - \cos \omega)^2 \\
158 q & = & \frac{1}{4} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-1}{2}} 4 (\cos([\mathtt{coefficients}]_{2j}) - \cos \omega)^2
166 p & = & \frac{(1 - \cos^2\omega)}{2} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-2}{2}} 4 (\cos([\mathtt{coefficients}]_{2j+1}) - \cos \omega)^2 \\
167 q & = & \frac{(1 + \cos^2\omega)}{2} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-2}{2}} 4 (\cos([\mathtt{coefficients}]_{2j}) - \cos \omega)^2
175 \exp \left( .11512925 \left(\frac{\matht
[all...]
/external/pixman/pixman/
H A Dpixman-filter.c241 double frac = step / 2.0 + i * step; local
251 x1 = ceil (frac - *width / 2.0 - 0.5);
257 double pos = x + 0.5 - frac;
/external/webrtc/src/common_audio/vad/
H A Dvad_filterbank.c233 int16_t zeros = 0, frac = 0, log2 = 0; local
250 frac = (int16_t) (((uint32_t) ((int32_t) (energy_s16) << zeros)
252 log2 = (int16_t) (((31 - zeros) << 10) + frac);
/external/webrtc/src/modules/audio_processing/ns/
H A Dnsx_core.c457 tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac
476 WebRtc_Word16 countProd, delta, zeros, frac; local
499 frac = (WebRtc_Word16)((((WebRtc_UWord32)magn[i] << zeros)
502 assert(frac < 256);
504 + WebRtcNsx_kLogTableFrac[frac]);
1134 WebRtc_Word16 zeros, frac, intPart; local
1150 frac = (WebRtc_Word16)(((WebRtc_UWord32)((WebRtc_UWord32)(magn[i]) << zeros)
1153 assert(frac < 256);
1155 + WebRtcNsx_kLogTableFrac[frac]); // Q8
1166 frac
1301 WebRtc_Word16 tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac, intPart; local
1536 WebRtc_Word16 frac = 0; local
[all...]
/external/libvpx/libvpx/test/
H A Dconvolve_test.cc559 for (int frac = 0; frac < 16; ++frac) {
563 vp9_sub_pel_filters_8[frac], step,
564 vp9_sub_pel_filters_8[frac], step,
573 << ", frac == " << frac << ", step == " << step;
/external/chromium_org/third_party/skia/src/core/
H A DSkString.cpp151 unsigned frac = x & 0xFFFF; local
153 if (frac == 0xFFFF) {
156 frac = 0;
161 if (frac) {
165 x = SkFixedRound(frac * 10000);
/external/skia/src/core/
H A DSkString.cpp151 unsigned frac = x & 0xFFFF; local
153 if (frac == 0xFFFF) {
156 frac = 0;
161 if (frac) {
165 x = SkFixedRound(frac * 10000);
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/softpipe/
H A Dsp_tex_sample.c59 frac(float f) function
193 float u = frac(s);
271 *w = frac(u);
283 *w = frac(u);
299 *w = frac(u);
313 *w = frac(u);
322 float u = frac(s);
332 *w = frac(u);
348 *w = frac(u);
368 *w = frac(
[all...]
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_tex_sample.c59 frac(float f) function
193 float u = frac(s);
271 *w = frac(u);
283 *w = frac(u);
299 *w = frac(u);
313 *w = frac(u);
322 float u = frac(s);
332 *w = frac(u);
348 *w = frac(u);
368 *w = frac(
[all...]

Completed in 621 milliseconds

123