Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 25 of 65) sorted by relevance

123

/external/libopus/celt/
Dmathops.h101 float frac; in celt_log2() local
109 frac = in.f - 1.5f; in celt_log2()
110 frac = -0.41445418f + frac*(0.95909232f in celt_log2()
111 + frac*(-0.33951290f + frac*0.16541097f)); in celt_log2()
112 return 1+integer+frac; in celt_log2()
119 float frac; in celt_exp2() local
127 frac = x-integer; in celt_exp2()
129 res.f = 0.99992522f + frac * (0.69583354f in celt_exp2()
130 + frac * (0.22606716f + 0.078024523f*frac)); in celt_exp2()
172 opus_val16 n, frac; in celt_log2() local
[all …]
Dcwrs.h39 int log2_frac(opus_uint32 val, int frac);
42 void get_required_bits(opus_int16 *bits, int N, int K, int frac);
Dcwrs.c45 int log2_frac(opus_uint32 val, int frac) in log2_frac() argument
55 l=(l-1)<<frac; in log2_frac()
61 l+=b<<frac; in log2_frac()
65 while(frac-->0); in log2_frac()
70 else return (l-1)<<frac; in log2_frac()
Dquant_bands.c368 opus_int16 frac = 1<<fine_quant[i]; in quant_fine_energy() local
379 q2 = (int)floor((error[i+c*m->nbEBands]+.5f)*frac); in quant_fine_energy()
381 if (q2 > frac-1) in quant_fine_energy()
382 q2 = frac-1; in quant_fine_energy()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1GeneralizedTime.java294 String frac = d.substring(14); in getDate() local
296 for (index = 1; index < frac.length(); index++) in getDate()
298 char ch = frac.charAt(index); in getDate()
307 frac = frac.substring(0, 4) + frac.substring(index); in getDate()
308 d = d.substring(0, 14) + frac; in getDate()
312 frac = frac.substring(0, index) + "00" + frac.substring(index); in getDate()
313 d = d.substring(0, 14) + frac; in getDate()
317 frac = frac.substring(0, index) + "0" + frac.substring(index); in getDate()
318 d = d.substring(0, 14) + frac; in getDate()
/external/speex/libspeex/
Dresample.c243 float y, frac; in compute_func() local
248 frac = (y-ind); in compute_func()
250 interp[3] = -0.1666666667*frac + 0.1666666667*(frac*frac*frac); in compute_func()
251 interp[2] = frac + 0.5*(frac*frac) - 0.5*(frac*frac*frac); in compute_func()
253 interp[0] = -0.3333333333*frac + 0.5*(frac*frac) - 0.1666666667*(frac*frac*frac); in compute_func()
319 static void cubic_coef(spx_word16_t frac, spx_word16_t interp[4]) in cubic_coef() argument
323 interp[0] = -0.16667f*frac + 0.16667f*frac*frac*frac; in cubic_coef()
324 interp[1] = frac + 0.5f*frac*frac - 0.5f*frac*frac*frac; in cubic_coef()
326 interp[3] = -0.33333f*frac + 0.5f*frac*frac - 0.16667f*frac*frac*frac; in cubic_coef()
452 …const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_r… in resampler_basic_interpolate_single() local
[all …]
Dmath_approx.h253 spx_word16_t frac; in spx_exp2() local
259 frac = SHL16(x-SHL16(integer,11),3); in spx_exp2()
260frac = ADD16(D0, MULT16_16_Q14(frac, ADD16(D1, MULT16_16_Q14(frac, ADD16(D2 , MULT16_16_Q14(D3,fra… in spx_exp2()
261 return VSHR32(EXTEND32(frac), -integer-2); in spx_exp2()
Dresample_sse.h57 …gle(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac) { in interpolate_product_single() argument
61 __m128 f = _mm_loadu_ps(frac); in interpolate_product_single()
100 …ble(const float *a, const float *b, unsigned int len, const spx_uint32_t oversample, float *frac) { in interpolate_product_double() argument
106 __m128 f = _mm_loadu_ps(frac); in interpolate_product_double()
Dpreprocess.c299 spx_word16_t frac; in hypergeom_gain() local
310 frac = SHL32(xx-SHL32(ind,10),5); in hypergeom_gain()
311 …return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),… in hypergeom_gain()
358 float integer, frac; in hypergeom_gain() local
371 frac = 2*x-integer; in hypergeom_gain()
372 return FRAC_SCALING*((1-frac)*table[ind] + frac*table[ind+1])/sqrt(x+.0001f); in hypergeom_gain()
/external/webp/src/utils/
Drescaler.c46 const int32_t frac = base * (-accum); in ImportRowC() local
48 wrk->frow[x_out] = (sum + base) * wrk->x_sub - frac; in ImportRowC()
50 sum = (int)MULT_FIX(frac, wrk->fx_scale); in ImportRowC()
80 const int frac = (int)MULT_FIX(frow[x_out], yscale); in ExportRowC() local
81 const int v = (int)MULT_FIX(irow[x_out] - frac, wrk->fxy_scale); in ExportRowC()
83 irow[x_out] = frac; // new fractional start in ExportRowC()
106 int base, frac, sum; in ImportRowMIPS() local
148 [sum] "=&r" (sum), [base] "=&r" (base), [frac] "=&r" (frac), in ImportRowMIPS()
184 [frac] "=&r" (frac), [frow] "+r" (frow), [irow] "+r" (irow) in ImportRowMIPS()
/external/valgrind/none/tests/ppc64/
Dround.c53 unsigned int frac:23; member
59 unsigned int frac:23;
150 msg, F.flt, (F.layout.sign == 0 ? '+' : '-'), F.layout.exp, F.layout.frac << 1); in print_single()
166 (R.layout.frac != E.layout.frac)) { in check_dbl_to_flt_round()
240 F.layout.frac = 1; in init()
278 (R.layout.frac != E.layout.frac)) { in check_int_to_flt_round()
538 int num, den, frac; in check_single_guarded_arithmetic_op() member
611 B.layout.frac = g; in check_single_guarded_arithmetic_op()
621 Z.layout.frac = 0x100000 | (g >> 3); in check_single_guarded_arithmetic_op()
627 A.layout.frac |= 0x2; in check_single_guarded_arithmetic_op()
[all …]
/external/valgrind/none/tests/ppc32/
Dround.c53 unsigned int frac:23; member
59 unsigned int frac:23;
150 msg, F.flt, (F.layout.sign == 0 ? '+' : '-'), F.layout.exp, F.layout.frac << 1); in print_single()
166 (R.layout.frac != E.layout.frac)) { in check_dbl_to_flt_round()
240 F.layout.frac = 1; in init()
278 (R.layout.frac != E.layout.frac)) { in check_int_to_flt_round()
538 int num, den, frac; in check_single_guarded_arithmetic_op() member
611 B.layout.frac = g; in check_single_guarded_arithmetic_op()
621 Z.layout.frac = 0x100000 | (g >> 3); in check_single_guarded_arithmetic_op()
627 A.layout.frac |= 0x2; in check_single_guarded_arithmetic_op()
[all …]
/external/deqp/framework/common/
DtcuFloatFormat.cpp101 const double frac = deFractExp(deAbs(x), &exp); in ulp() local
103 if (deIsNaN(frac)) in ulp()
105 else if (deIsInf(frac)) in ulp()
107 else if (frac == 1.0) in ulp()
113 else if (frac == 0.0) in ulp()
144 const double frac = deFractExp(d, &exp); in round() local
146 const double shiftFrac = deLdExp(frac, shift); in round()
237 const double frac = deFractExp(deAbs(x), &exp); in floatToHex() local
239 const deUint64 bits = deUint64(deLdExp(frac, shift)); in floatToHex()
/external/aac/libFDK/include/
Dfixpoint_math.h123 USHORT frac=(y>>10)&0xffff; in sqrtFixp_lookup() local
124 USHORT nfrac=0xffff^frac; in sqrtFixp_lookup()
125 UINT t=nfrac*sqrt_tab[idx]+frac*sqrt_tab[idx+1]; in sqrtFixp_lookup()
151 USHORT frac=(y>>10)&0xffff; in sqrtFixp_lookup() local
152 USHORT nfrac=0xffff^frac; in sqrtFixp_lookup()
153 UINT t=nfrac*sqrt_tab[idx]+frac*sqrt_tab[idx+1]; in sqrtFixp_lookup()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DHebrewCalendar.java611 long frac = months * MONTH_FRACT + BAHARAD; // Fractional part of day # in startOfYear() local
612 day = months * 29 + (frac / DAY_PARTS); // Whole # part of calculation in startOfYear()
613 frac = frac % DAY_PARTS; // Time of day in startOfYear()
622 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
628 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
/external/libvorbis/doc/
D06-floor0.tex135 …\mathrm{bark}\left(\frac{\mathtt{floor0\_rate} \cdot i}{2n}\right) \cdot \frac{\mathtt{floor0\_bar…
157 …p & = & (1 - \cos^2\omega)\prod_{j=0}^{\frac{\mathtt{floor0\_order}-3}{2}} 4 (\cos([\mathtt{coeffi…
158 …q & = & \frac{1}{4} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-1}{2}} 4 (\cos([\mathtt{coefficients…
166 …p & = & \frac{(1 - \cos^2\omega)}{2} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-2}{2}} 4 (\cos([\ma…
167 …q & = & \frac{(1 + \cos^2\omega)}{2} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-2}{2}} 4 (\cos([\ma…
175 …\exp \left( .11512925 \left(\frac{\mathtt{amplitude} \cdot \mathtt{floor0\_amplitute\_offset}}{(2^…
/external/webrtc/src/modules/audio_processing/ns/
Dnsx_core.c476 WebRtc_Word16 countProd, delta, zeros, frac; in NoiseEstimationC() local
499 frac = (WebRtc_Word16)((((WebRtc_UWord32)magn[i] << zeros) in NoiseEstimationC()
502 assert(frac < 256); in NoiseEstimationC()
504 + WebRtcNsx_kLogTableFrac[frac]); in NoiseEstimationC()
1134 WebRtc_Word16 zeros, frac, intPart; in WebRtcNsx_ComputeSpectralFlatness() local
1150 frac = (WebRtc_Word16)(((WebRtc_UWord32)((WebRtc_UWord32)(magn[i]) << zeros) in WebRtcNsx_ComputeSpectralFlatness()
1153 assert(frac < 256); in WebRtcNsx_ComputeSpectralFlatness()
1155 + WebRtcNsx_kLogTableFrac[frac]); // Q8 in WebRtcNsx_ComputeSpectralFlatness()
1166 frac = (WebRtc_Word16)(((avgSpectralFlatnessDen << zeros) & 0x7FFFFFFF) >> 23); in WebRtcNsx_ComputeSpectralFlatness()
1168 assert(frac < 256); in WebRtcNsx_ComputeSpectralFlatness()
[all …]
Dnsx_core_neon.c100 int16_t countProd, delta, zeros, frac; in NoiseEstimationNeon() local
125 frac = (int16_t)((((uint32_t)magn[i] << zeros) in NoiseEstimationNeon()
127 assert(frac < 256); in NoiseEstimationNeon()
130 + WebRtcNsx_kLogTableFrac[frac]); in NoiseEstimationNeon()
/external/icu/icu4c/source/i18n/
Dhebrwcal.cpp395 int64_t frac = (int64_t)months * MONTH_FRACT + BAHARAD; // Fractional part of day # in startOfYear() local
396 day = months * 29 + (int32_t)(frac / DAY_PARTS); // Whole # part of calculation in startOfYear()
397 frac = frac % DAY_PARTS; // Time of day in startOfYear()
406 if (wd == 1 && frac > 15*HOUR_PARTS+204 && !isLeapYear(year) ) { in startOfYear()
412 else if (wd == 0 && frac > 21*HOUR_PARTS+589 && isLeapYear(year-1) ) { in startOfYear()
/external/libpcap/
Dsf-pcap-ng.c957 u_int64_t t, sec, frac; in pcap_ng_next_packet() local
1216 frac = t % ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1240 frac *= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1241 frac /= ps->user_tsresol; in pcap_ng_next_packet()
1258 frac *= ps->user_tsresol; in pcap_ng_next_packet()
1259 frac /= ps->ifaces[interface_id].tsresol; in pcap_ng_next_packet()
1263 hdr->ts.tv_usec = frac; in pcap_ng_next_packet()
/external/webrtc/src/common_audio/vad/
Dvad_filterbank.c233 int16_t zeros = 0, frac = 0, log2 = 0; in WebRtcVad_LogOfEnergy() local
250 frac = (int16_t) (((uint32_t) ((int32_t) (energy_s16) << zeros) in WebRtcVad_LogOfEnergy()
252 log2 = (int16_t) (((31 - zeros) << 10) + frac); in WebRtcVad_LogOfEnergy()
/external/libvpx/libvpx/test/
Dconvolve_test.cc561 for (int frac = 0; frac < 16; ++frac) { in TEST_P() local
565 eighttap[frac], step, in TEST_P()
566 eighttap[frac], step, in TEST_P()
575 << ", frac == " << frac << ", step == " << step; in TEST_P()
/external/skia/src/core/
DSkString.cpp154 unsigned frac = x & 0xFFFF; in SkStrAppendFixed() local
156 if (frac == 0xFFFF) { in SkStrAppendFixed()
159 frac = 0; in SkStrAppendFixed()
164 if (frac) { in SkStrAppendFixed()
168 x = SkFixedRoundToInt(frac * 10000); in SkStrAppendFixed()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tex_sample.c59 frac(float f) in frac() function
193 float u = frac(s); in wrap_nearest_mirror_repeat()
271 *w = frac(u); in wrap_linear_repeat()
283 *w = frac(u); in wrap_linear_clamp()
299 *w = frac(u); in wrap_linear_clamp_to_edge()
313 *w = frac(u); in wrap_linear_clamp_to_border()
322 float u = frac(s); in wrap_linear_mirror_repeat()
332 *w = frac(u); in wrap_linear_mirror_repeat()
348 *w = frac(u); in wrap_linear_mirror_clamp()
368 *w = frac(u); in wrap_linear_mirror_clamp_to_edge()
[all …]
/external/webrtc/src/modules/audio_processing/aecm/
Daecm_core.c867 WebRtc_Word16 zeros, frac; in WebRtcAecm_CalcEnergies() local
886 frac = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_U32( in WebRtcAecm_CalcEnergies()
890 tmp16 += WEBRTC_SPL_LSHIFT_W16((31 - zeros), 8) + frac; in WebRtcAecm_CalcEnergies()
909 frac = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_U32((WEBRTC_SPL_LSHIFT_U32(tmpFar, zeros) in WebRtcAecm_CalcEnergies()
912 tmp16 += WEBRTC_SPL_LSHIFT_W16((31 - zeros), 8) + frac; in WebRtcAecm_CalcEnergies()
922 frac = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_U32((WEBRTC_SPL_LSHIFT_U32(tmpAdapt, zeros) in WebRtcAecm_CalcEnergies()
925 tmp16 += WEBRTC_SPL_LSHIFT_W16((31 - zeros), 8) + frac; in WebRtcAecm_CalcEnergies()
935 frac = (WebRtc_Word16)WEBRTC_SPL_RSHIFT_U32((WEBRTC_SPL_LSHIFT_U32(tmpStored, zeros) in WebRtcAecm_CalcEnergies()
938 tmp16 += WEBRTC_SPL_LSHIFT_W16((31 - zeros), 8) + frac; in WebRtcAecm_CalcEnergies()

123