Home
last modified time | relevance | path

Searched refs:SHL32 (Results 1 - 13 of 13) sorted by relevance

/third_party/pulseaudio/speex/libspeexdsp/
H A Dmath_approx.h174 ret = spx_sqrt(SHL32(EXTEND32(sq),13)); in spx_acos()
219 if (x>SHL32(EXTEND32(1), 16)) in spx_cos_norm()
220 x = SUB32(SHL32(EXTEND32(1), 17),x); in spx_cos_norm()
223 if (x<SHL32(EXTEND32(1), 15)) in spx_cos_norm()
299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14))); in spx_atan()
H A Dpreprocess.c113 a = SHL32(a,8); in DIV32_16_Q8()
139 a = SHL32(a,15)-a; in DIV32_16_Q15()
277 tmp = SQR16_Q15(QCONST16(.5f,15)-MULT16_16_P15(QCONST16(.5f,15),spx_cos_norm(SHL32(EXTEND32(x),2)))); in conj_window()
280 w[i]=spx_sqrt(SHL32(EXTEND32(tmp),15)); in conj_window()
306 frac = SHL32(xx-SHL32(ind,10),5); in hypergeom_gain()
307 return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),(spx_sqrt(SHL32(xx,15)+6711))),7); in hypergeom_gain()
313 return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,x)))); in qcurve()
330 spx_sqrt(SHL32(EXTEND3 in compute_gain_floor()
[all...]
H A Dfixed_generic.h48 #define SHL32(a,shift) ((a) << (shift)) macro
51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
55 #define SATURATE32PSHR(x,shift,a) (((x)>=(SHL32(a,shift))) ? (a) : \
56 (x)<=-(SHL32(a,shift)) ? -(a) : \
H A Dmdf.c200 spx_word32_t vout = mem[0] + SHL32(EXTEND32(vin),15); in filter_dc_notch16()
202 mem[0] = mem[1] + SHL32(SHL32(-EXTEND32(vin),15) + MULT16_32_Q15(radius,vout),1); in filter_dc_notch16()
206 mem[1] = SHL32(EXTEND32(vin),15) - MULT16_32_Q15(den2,vout); in filter_dc_notch16()
428 st->spec_average = DIV32_16(SHL32(EXTEND32(st->frame_size), 15), st->sampling_rate); in speex_echo_state_init_mc()
430 st->beta0 = DIV32_16(SHL32(EXTEND32(st->frame_size), 16), st->sampling_rate); in speex_echo_state_init_mc()
431 st->beta_max = DIV32_16(SHL32(EXTEND32(st->frame_size), 14), st->sampling_rate); in speex_echo_state_init_mc()
853 st->W[chan*N*K*M + j*N*K + speak*N + i] -= SHL32(EXTEND32(st->wtmp2[i]),16+NORMALIZE_SCALEDOWN-NORMALIZE_SCALEUP-1); in speex_echo_cancellation()
943 st->W[i] = SHL32(EXTEND32(st->foreground[i]),16); in speex_echo_cancellation()
1101 tmp32 = ADD32(SHR32(Sxx,13), ADD32(tmp32, SHL32(tmp3 in speex_echo_cancellation()
[all...]
H A Dpseudofloat.h274 if (ABS32(a)>=SHL32(EXTEND32(b.m-1),15)) in FLOAT_DIV32_FLOAT()
302 if (ABS32(a)>=SHL32(EXTEND32(b-1),15)) in FLOAT_DIV32()
341 m = SHL32(EXTEND32(a.m), 14); in FLOAT_SQRT()
H A Dkiss_fft.c57 Fout2->r = PSHR32(SUB32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2()
58 Fout2->i = PSHR32(SUB32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2()
59 Fout->r = PSHR32(ADD32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2()
60 Fout->i = PSHR32(ADD32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2()
486 kf_cexp2(st->twiddles+i, DIV32(SHL32(phase,17),nfft)); in kiss_fft_alloc()
H A Dkiss_fftr.c67 kf_cexp2(st->super_twiddles+i, DIV32(SHL32(phase,16),nfft)); in kiss_fftr_alloc()
240 f1kr = SHL32(ADD32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),13); in kiss_fftr2()
241 f1ki = SHL32(SUB32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),13); in kiss_fftr2()
H A Dfixed_debug.h147 static inline int SHL32(long long a, int shift) in SHL32() function
152 fprintf (stderr, "SHL32: inputs are not int: %d %d\n", (int)a, shift); in SHL32()
157 fprintf (stderr, "SHL32: output is not int: %d\n", (int)res); in SHL32()
165 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
H A Darch.h164 #define SHL32(a,shift) (a) macro
H A Dfilterbank.c62 df = DIV32(SHL32(sampling,15),MULT16_16(2,len)); in filterbank_new()
H A Dresample.c458 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); in resampler_basic_interpolate_single()
521 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); in resampler_basic_interpolate_double()
/third_party/pulseaudio/speex/tmv/
H A Dpreprocess_tm.h643 MULT16_32_Q15(beta,SHL32(psi,NOISE_SHIFT))); in preprocess_update_noise()
787 prior_ratio = PDIV32_16(SHL32(EXTEND32(priori), 15), ADD16(priori, SHL32(1,SNR_SHIFT))); in preprocess_compute_emgain()
788 theta = MULT16_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND32(post[i]),EXPIN_SHIFT-SNR_SHIFT)); in preprocess_compute_emgain()
799 tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+priori),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1)))); in preprocess_compute_emgain()
801 tmp = EXTRACT16(PSHR32(MULT16_16(PDIV32_16(SHL32(EXTEND32(q),8),(Q15_ONE-q)),tmp),8)); in preprocess_compute_emgain()
802 gain2[i]=DIV32_16(SHL32(EXTEND32(32767),SNR_SHIFT), ADD16(256,tmp)); in preprocess_compute_emgain()
842 prior_ratio = PDIV32_16(SHL32(EXTEND32(st->prior[i]), 15), ADD16(prior[i], SHL32(1,SNR_SHIFT))); in preprocess_compute_linear_gain()
843 theta = MULT16_32_P15(prior_ratio, QCONST32(1.f,EXPIN_SHIFT)+SHL32(EXTEND3 in preprocess_compute_linear_gain()
[all...]
H A Dmdf_tm.h568 { W[i] -= SHL32(EXTEND32(wtmp2[i]),16+NORMALIZE_SCALEDOWN-NORMALIZE_SCALEUP-1); in mdf_update_weight()
948 tmp32 = ADD32(SHR32(Sxx,13), ADD32(tmp32, SHL32(tmp32,1))); in mdf_compute_RER()
1002 r = SHL32(Yf[i],3); in mdf_adapt()
1004 e = SHL32(Rf[i],3)+1; in mdf_adapt()
1024 r = SHL32(Yf[framesize],3); in mdf_adapt()
1026 e = SHL32(Rf[framesize],3)+1; in mdf_adapt()

Completed in 14 milliseconds