Home
last modified time | relevance | path

Searched refs:MULT16_16 (Results 1 – 22 of 22) sorted by relevance

/external/speex/libspeex/
Dfixed_generic.h75 #define MULT16_16(a,b) (((spx_word32_t)(spx_word16_t)(a))*((spx_word32_t)(spx_word16_t)(b))) macro
77 #define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b))))
78 #define MULT16_32_Q12(a,b) ADD32(MULT16_16((a),SHR((b),12)), SHR(MULT16_16((a),((b)&0x00000fff)),12…
79 #define MULT16_32_Q13(a,b) ADD32(MULT16_16((a),SHR((b),13)), SHR(MULT16_16((a),((b)&0x00001fff)),13…
80 #define MULT16_32_Q14(a,b) ADD32(MULT16_16((a),SHR((b),14)), SHR(MULT16_16((a),((b)&0x00003fff)),14…
82 #define MULT16_32_Q11(a,b) ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16((a),((b)&0x000007ff)),11…
83 #define MAC16_32_Q11(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16((a),((b)&0x0000…
85 #define MULT16_32_P15(a,b) ADD32(MULT16_16((a),SHR((b),15)), PSHR(MULT16_16((a),((b)&0x00007fff)),1…
86 #define MULT16_32_Q15(a,b) ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00007fff)),15…
87 #define MAC16_32_Q15(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x0000…
[all …]
Dstereo.c164 e_left += SHR32(MULT16_16(data[2*i],data[2*i]),8); in speex_encode_stereo_int()
165 e_right += SHR32(MULT16_16(data[2*i+1],data[2*i+1]),8); in speex_encode_stereo_int()
172 e_tot += SHR32(MULT16_16(data[i],data[i]),8); in speex_encode_stereo_int()
235 e_left = SHR32(MULT16_16(spx_sqrt(balance), e_right), 8); in speex_decode_stereo()
240 …stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15))… in speex_decode_stereo()
241 …stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15… in speex_decode_stereo()
262 e_left = SHR32(MULT16_16(spx_sqrt(balance), e_right), 8); in speex_decode_stereo_int()
267 …stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15))… in speex_decode_stereo_int()
268 …stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15… in speex_decode_stereo_int()
290 stereo->balance = spx_exp(MULT16_16(sign, SHL16(dexp, 9))); in speex_std_stereo_request_handler()
Dltp.c104 part1 = MULT16_16(*x,y0);
105 part2 = MULT16_16(*x,y1);
106 part3 = MULT16_16(*x,y2);
107 part4 = MULT16_16(*x,y3);
159 sum = ADD32(sum,MULT16_16(MULT16_16_16(g[0],pitch_control),C[0])); in compute_pitch_error()
160 sum = ADD32(sum,MULT16_16(MULT16_16_16(g[1],pitch_control),C[1])); in compute_pitch_error()
161 sum = ADD32(sum,MULT16_16(MULT16_16_16(g[2],pitch_control),C[2])); in compute_pitch_error()
162 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[0],g[1]),C[3])); in compute_pitch_error()
163 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[2],g[1]),C[4])); in compute_pitch_error()
164 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[2],g[0]),C[5])); in compute_pitch_error()
[all …]
Dfilters.c102 spx_word32_t vout = ADD32(MULT16_16(num[0], x[i]),mem[0]); in highpass()
105 mem[1] = ADD32(MULT16_16(num[2],x[i]), SHL32(MULT16_32_Q15(-den[2],vout),1)); in highpass()
140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8); in signal_div()
150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6); in signal_div()
332 mem[ord-1] = ADD32(MULT16_16(num[ord-1],xi), MULT16_16(den[ord-1],nyi)); in filter_mem16()
352 mem[ord-1] = MULT16_16(den[ord-1],nyi); in iir_mem16()
372 mem[ord-1] = MULT16_16(num[ord-1],xi); in fir_mem16()
434 mem1[ord-1] = MULT16_16(awk2[ord-1],ny1i); in compute_impulse_response()
435 mem2[ord-1] = MULT16_16(ak[ord-1],ny2i); in compute_impulse_response()
465 y1k=ADD32(y1k,MULT16_16(a[j],ADD16(x[i+j],x2[i-j]))); in qmf_decomp()
[all …]
Dfilterbank.c46 … toBARK(n) (MULT16_16(26829,spx_atan(SHR32(MULT16_16(97,n),2))) + MULT16_16(4588,spx_atan(MULT16…
62 df = DIV32(SHL32(sampling,15),MULT16_16(2,len)); in filterbank_new()
165 tmp = MULT16_16(mel[id1],bank->filter_left[i]); in filterbank_compute_psd16()
166 tmp += MULT16_16(mel[id2],bank->filter_right[i]); in filterbank_compute_psd16()
Dcb_search_arm4.h118 E[0]=ADD32(E[0],MULT16_16(resj0,resj0));
119 E[1]=ADD32(E[1],MULT16_16(resj1,resj1));
120 E[2]=ADD32(E[2],MULT16_16(resj2,resj2));
121 E[3]=ADD32(E[3],MULT16_16(resj3,resj3));
Dpreprocess.c92 #define SQR16(x) (MULT16_16((x),(x)))
262 spx_word16_t x = DIV32_16(MULT16_16(32767,i),len); in conj_window()
264 spx_word16_t x = DIV32_16(MULT16_16(QCONST16(4.f,13),i),len); in conj_window()
311 …return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),… in hypergeom_gain()
328 …noise_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),noise_suppress))… in compute_gain_floor()
329 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),effective_echo… in compute_gain_floor()
338 …echo_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),effective_echo_su… in compute_gain_floor()
339 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),noise_suppress… in compute_gain_floor()
655 ps[0]=MULT16_16(st->ft[0],st->ft[0]); in preprocess_analysis()
657 ps[i]=MULT16_16(st->ft[2*i-1],st->ft[2*i-1]) + MULT16_16(st->ft[2*i],st->ft[2*i]); in preprocess_analysis()
[all …]
Dltp_bfin.h260 if (MULT16_16(tmp,best_ener[N-1])>MULT16_16(best_score[N-1],ADD16(1,ener16[i-start]))) in open_loop_nbest_pitch()
269 if (MULT16_16(tmp,best_ener[j])>MULT16_16(best_score[j],ADD16(1,ener16[i-start]))) in open_loop_nbest_pitch()
295 g = DIV32(corr[i-start], 10+SHR32(MULT16_16(spx_sqrt(e0),spx_sqrt(energy[i-start])),6)); in open_loop_nbest_pitch()
Dlpc_bfin.h56 ac0 = ADD32(ac0,SHR32(MULT16_16(x[j],x[j]),8)); in _spx_autocorr()
115 d = ADD32(d,SHR32(MULT16_16(x[j],x[j]), shift)); in _spx_autocorr()
124 d = ADD32(d,SHR32(MULT16_16(x[j],x[j-i]), shift)); in _spx_autocorr()
Dlpc.c95 rr = SUB32(rr,MULT16_16(lpc[j],ac[i - j])); in _spx_lpc()
141 ac0 = ADD32(ac0,SHR32(MULT16_16(x[j],x[j]),8)); in _spx_autocorr()
162 d = ADD32(d,SHR32(MULT16_16(x[j],x[j-i]), shift)); in _spx_autocorr()
Dmdf.c237 ps[0]=MULT16_16(X[0],X[0]); in power_spectrum()
240 ps[j] = MULT16_16(X[i],X[i]) + MULT16_16(X[i+1],X[i+1]); in power_spectrum()
242 ps[j]=MULT16_16(X[i],X[i]); in power_spectrum()
249 ps[0]+=MULT16_16(X[0],X[0]); in power_spectrum_accum()
252 ps[j] += MULT16_16(X[i],X[i]) + MULT16_16(X[i+1],X[i+1]); in power_spectrum_accum()
254 ps[j]+=MULT16_16(X[i],X[i]); in power_spectrum_accum()
273 … tmp1 = SUB32(MAC16_16(tmp1, X[j*N+i],TOP16(Y[j*N+i])), MULT16_16(X[j*N+i+1],TOP16(Y[j*N+i+1]))); in spectral_mul_accum()
300 tmp1 = SUB32(MAC16_16(tmp1, X[j*N+i],Y[j*N+i]), MULT16_16(X[j*N+i+1],Y[j*N+i+1])); in spectral_mul_accum16()
342 prod[0] = FLOAT_MUL32(W,MULT16_16(X[0],Y[0])); in weighted_spectral_mul_conj()
346 prod[i] = FLOAT_MUL32(W,MAC16_16(MULT16_16(X[i],Y[i]), X[i+1],Y[i+1])); in weighted_spectral_mul_conj()
[all …]
Dfixed_arm5e.h38 #undef MULT16_16
39 static inline spx_word32_t MULT16_16(spx_word16_t x, spx_word16_t y) { in MULT16_16() function
Dresample.c310 …interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef()
312 …interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_… in cubic_coef()
464 accum[0] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-2]); in resampler_basic_interpolate_single()
465 accum[1] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-1]); in resampler_basic_interpolate_single()
466 accum[2] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset]); in resampler_basic_interpolate_single()
467 accum[3] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset+1]); in resampler_basic_interpolate_single()
527 accum[0] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-2]); in resampler_basic_interpolate_double()
528 accum[1] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-1]); in resampler_basic_interpolate_double()
529 accum[2] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset]); in resampler_basic_interpolate_double()
530 accum[3] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset+1]); in resampler_basic_interpolate_double()
Dkiss_fftr.c243 …twr = SHR32(SUB32(MULT16_16(f2k.r,st->super_twiddles[k].r),MULT16_16(f2k.i,st->super_twiddles[k].i… in kiss_fftr2()
244 …twi = SHR32(ADD32(MULT16_16(f2k.i,st->super_twiddles[k].r),MULT16_16(f2k.r,st->super_twiddles[k].i… in kiss_fftr2()
Dfixed_debug.h253 #define MULT16_16(a, b) _MULT16_16(a, b, __FILE__, __LINE__) macro
268 #define MAC16_16(c,a,b) (spx_mips--,ADD32((c),MULT16_16((a),(b))))
269 #define MAC16_16_Q11(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),11)))))
270 #define MAC16_16_Q13(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),13)))))
271 #define MAC16_16_P13(c,a,b) (EXTRACT16(ADD32((c),SHR32(ADD32(4096,MULT16_16((a),(b))),13))))
Dsb_celp.c254 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in sb_encoder_init()
393 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i>>1]),SIG_SHIFT)); in sb_encode()
396 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i]),SIG_SHIFT)); in sb_encode()
607 g=PDIV32(MULT16_16(filter_ratio,eh),EXTEND32(ADD16(1,el))); in sb_encode()
647 gc = PDIV32_16(MULT16_16(filter_ratio,1+eh),1+el); in sb_encode()
661 scale = SHL32(MULT16_16(PDIV32_16(SHL32(EXTEND32(gc),SIG_SHIFT-6),filter_ratio),(1+el)),6); in sb_encode()
1032 g= spx_exp(MULT16_16(QCONST16(.125f,11),(quant-10))); in sb_decode()
1053 scale = SHL32(PDIV32(SHL32(MULT16_16(gc, el),3), filter_ratio),SIG_SHIFT-3); in sb_decode()
1087 …exc_ener_sum = ADD32(exc_ener_sum, DIV32(MULT16_16(st->exc_rms[sub],st->exc_rms[sub]), st->nbSubfr… in sb_decode()
1258 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in sb_encoder_ctl()
Dkiss_fft.c54 tr = SHR32(SUB32(MULT16_16(Fout2->r , tw1->r),MULT16_16(Fout2->i , tw1->i)), 1); in kf_bfly2()
55 ti = SHR32(ADD32(MULT16_16(Fout2->i , tw1->r),MULT16_16(Fout2->r , tw1->i)), 1); in kf_bfly2()
Dnb_celp.c175 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in nb_encoder_init()
308 w_sig[i] = EXTRACT16(SHR32(MULT16_16(st->winBuf[i],st->window[i]),SIG_SHIFT)); in nb_encode()
310 …w_sig[i] = EXTRACT16(SHR32(MULT16_16(in[i-st->windowSize+st->frameSize],st->window[i]),SIG_SHIFT)); in nb_encode()
406 ol_gain = MULT16_16(g, MULT16_16_Q14(QCONST16(1.1,14), in nb_encode()
407 …spx_sqrt(QCONST32(1.,28)-MULT16_32_Q15(QCONST16(.8,15),SHL32(MULT16_16(ol_pitch_coef,ol_pitch_coef… in nb_encode()
1444 …exc[st->voc_offset]=MULT16_16(spx_sqrt(MULT16_16_16(2,ol_pitch)),EXTRACT16(PSHR32(MULT16_16(g,PSHR… in nb_decode()
1458 …st->voc_mean = EXTRACT16(PSHR32(ADD32(MULT16_16(QCONST16(.8f,15),st->voc_mean), MULT16_16(QCONST16… in nb_decode()
1702 st->old_lsp[i]= DIV32(MULT16_16(QCONST16(3.1415927f, LSP_SHIFT), i+1), st->lpcSize+1); in nb_encoder_ctl()
Dmath_approx.h126 res = MULT16_16(EXTRACT16(SHR32(*seed,16)),std); in speex_rand()
Darch.h186 #define MULT16_16(a,b) ((spx_word32_t)(a)*(spx_word32_t)(b)) macro
Dquant_lsp.c144 dist=MAC16_32_Q15(dist,weight[j],MULT16_16(tmp,tmp)); in lsp_weight_quant()
Dcb_search.c94 t[n] = SUB16(t[n],PSHR32(MULT16_16(g,r[n]),13)); in target_update()