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

123

/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/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/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)WEBRTC_SPL_MUL_16_16_RSFT(tmp16no1, frac, 14);
135 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
136 tmp16no2 += (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(tmp16no1, frac, 14);
183 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
185 tmp16no1, frac, 14);
232 frac = (int16_t)(tmp32no1 & 0x00000fff); // Q12
234 // Quadratic approximation of 2^frac
235 tmp32no2 = WEBRTC_SPL_RSHIFT_W32(frac * fra
[all...]
H A Dnsx_core_mips.c34 int16_t tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac; local
137 frac = (int16_t)(tmp32no1 & 0x00003fff); // Q14
138 tmp16no2 += (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(tmp16no1, frac, 14);
169 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
170 tmp16no2 += (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(tmp16no1, frac, 14);
217 frac = (int16_t)(tmpU32no1 & 0x00003fff); // Q14
219 tmp16no1, frac, 14);
/external/chromium_org/third_party/opus/src/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/chromium_org/third_party/speex/libspeex/
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/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/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/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/chromium_org/third_party/WebKit/Source/core/svg/
H A DSVGParserUtilities.cpp48 FloatType integer, decimal, frac, exponent; local
54 frac = 1;
99 decimal += (*(ptr++) - '0') * (frac *= static_cast<FloatType>(0.1));
/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/chromium_org/third_party/libwebp/utils/
H A Drescaler.c46 const int32_t frac = base * (-accum); local
48 wrk->frow[x_out] = (sum + base) * wrk->x_sub - frac;
50 sum = (int)MULT_FIX(frac, wrk->fx_scale);
80 const int frac = (int)MULT_FIX(frow[x_out], yscale); local
81 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale);
83 irow[x_out] = frac; // new fractional start
106 int base, frac, sum; local
130 "mul %[frac], %[base], %[accum1] \n\t"
135 "sll %[accum1], %[frac], 2 \n\t"
139 "subu %[temp3], %[temp3], %[frac] \
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/
H A Dpitch_estimator.c32 int16_t frac; local
35 frac=(int16_t)WEBRTC_SPL_RSHIFT_W32(((uint32_t)(WEBRTC_SPL_LSHIFT_W32(x, zeros))&0x7FFFFFFF), 23);
38 lg2= (WEBRTC_SPL_LSHIFT_W32((31-zeros), 8)+frac);
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/
H A Dreceive_statistics_impl.cc328 uint32_t* frac) const {
331 *frac = last_receive_time_frac_;
444 uint32_t frac; local
445 it->second->LastReceiveTimeNtp(&secs, &frac);
447 Clock::NtpToMs(secs, frac) < kStatisticsTimeoutMs) {
H A Drtp_utility.cc90 uint32_t secs = 0, frac = 0; local
91 local_clock->CurrentNtp(secs, frac);
95 return ConvertNTPTimeToRTP(secs, frac, freq);
/external/icu/icu4c/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/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/webp/src/utils/
H A Drescaler.c46 const int32_t frac = base * (-accum); local
48 wrk->frow[x_out] = (sum + base) * wrk->x_sub - frac;
50 sum = (int)MULT_FIX(frac, wrk->fx_scale);
80 const int frac = (int)MULT_FIX(frow[x_out], yscale); local
81 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale);
83 irow[x_out] = frac; // new fractional start
106 int base, frac, sum; local
130 "mul %[frac], %[base], %[accum1] \n\t"
135 "sll %[accum1], %[frac], 2 \n\t"
139 "subu %[temp3], %[temp3], %[frac] \
[all...]
/external/webrtc/src/modules/audio_processing/ns/
H A Dnsx_core_neon.c47 // tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac
81 int32_t tmp32no1 = (0x00200000 | (tmp32no2 & 0x001FFFFF)); // 2^21 + frac
100 int16_t countProd, delta, zeros, frac; local
125 frac = (int16_t)((((uint32_t)magn[i] << zeros)
127 assert(frac < 256);
130 + WebRtcNsx_kLogTableFrac[frac]);
/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 525 milliseconds

123