Home
last modified time | relevance | path

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

12

/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()
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 …]
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));
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))))
/external/libopus/celt/
Dfixed_generic.h43 #define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR((b),16)), SHR(MULT16_16SU((a),((b)&0x0000ffff)),…
50 #define MULT16_32_P16(a,b) ADD32(MULT16_16((a),SHR((b),16)), PSHR(MULT16_16SU((a),((b)&0x0000ffff))…
57 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000…
64 #define MULT32_32_Q31(a,b) ADD32(ADD32(SHL(MULT16_16(SHR((a),16),SHR((b),16)),1), SHR(MULT16_16SU(S…
125 #define MULT16_16(a,b) (((opus_val32)(opus_val16)(a))*((opus_val32)(opus_val16)(b))) macro
128 #define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b))))
132 #define MAC16_32_Q15(c,a,b) ADD32((c),ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00…
136 #define MAC16_32_Q16(c,a,b) ADD32((c),ADD32(MULT16_16((a),SHR((b),16)), SHR(MULT16_16SU((a),((b)&0x…
138 #define MULT16_16_Q11_32(a,b) (SHR(MULT16_16((a),(b)),11))
139 #define MULT16_16_Q11(a,b) (SHR(MULT16_16((a),(b)),11))
[all …]
Dvq.c55 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
56 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
64 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
65 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
83 gain = celt_div((opus_val32)MULT16_16(Q15_ONE,len),(opus_val32)(len+factor*K)); in exp_rotation()
135 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); in normalise_residual()
289 if (MULT16_16(best_den, Rxy) > MULT16_16(Ryy, best_num)) in alg_quant()
311 X[j] = MULT16_16(signx[j],X[j]); in alg_quant()
369 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
Dcelt_lpc.c163 sum -= MULT16_16(den[j],mem[j]); in celt_iir()
218 sum -= MULT16_16(rden[j],y[i+j]); in celt_iir()
266 if (n&1) ac0 += SHR32(MULT16_16(xptr[0],xptr[0]),9); in _celt_autocorr()
269 ac0 += SHR32(MULT16_16(xptr[i],xptr[i]),9); in _celt_autocorr()
270 ac0 += SHR32(MULT16_16(xptr[i+1],xptr[i+1]),9); in _celt_autocorr()
Dpitch.c69 Syy = ADD32(Syy, SHR32(MULT16_16(y[j],y[j]), yshift)); in find_best_pitch()
100 Syy += SHR32(MULT16_16(y[i+len],y[i+len]),yshift) - SHR32(MULT16_16(y[i],y[i]),yshift); in find_best_pitch()
379 sum += SHR32(MULT16_16(x_lp[j],y[i+j]), shift); in pitch_search()
482 yy = yy+MULT16_16(x[-i],x[-i])-MULT16_16(x[N-i],x[N-i]); in remove_doubling()
Dbands.c253 *f++ = SHL32(MULT16_16(*x++, g), -shift); in denormalise_bands()
259 *f++ = SHR32(MULT16_16(*x++, g), shift); in denormalise_bands()
375 norm = EPSILON + celt_sqrt(EPSILON+MULT16_16(left,left)+MULT16_16(right,right)); in intensity_stereo()
383 X[j] = EXTRACT16(SHR32(MAC16_16(MULT16_16(a1, l), a2, r), 14)); in intensity_stereo()
394 l = MULT16_16(QCONST16(.70710678f, 15), X[j]); in stereo_split()
395 r = MULT16_16(QCONST16(.70710678f, 15), Y[j]); in stereo_split()
418 El = MULT16_16(mid2, mid2) + side - 2*xp; in stereo_merge()
419 Er = MULT16_16(mid2, mid2) + side + 2*xp; in stereo_merge()
448 X[j] = EXTRACT16(PSHR32(MULT16_16(lgain, SUB16(l,r)), kl+1)); in stereo_merge()
449 Y[j] = EXTRACT16(PSHR32(MULT16_16(rgain, ADD16(l,r)), kr+1)); in stereo_merge()
[all …]
Dcelt_encoder.c298 opus_val16 x2 = PSHR32(MULT16_16(tmp[2*i],tmp[2*i]) + MULT16_16(tmp[2*i+1],tmp[2*i+1]),16); in transient_analysis()
333 mean = MULT16_16(celt_sqrt(mean), celt_sqrt(MULT16_16(maxE,len2>>1))); in transient_analysis()
366 …*tf_estimate = celt_sqrt(MAX32(0, SHL32(MULT16_16(QCONST16(0.0069,14),MIN16(163,tf_max)),14)-QCONS… in transient_analysis()
482 m = SHR32(MULT16_16(coef0, x), 15-SIG_SHIFT); in celt_preemphasis()
516 tmp = MULT16_16(coef2, x); in celt_preemphasis()
529 m = SHR32(MULT16_16(coef0, x), 15-SIG_SHIFT); in celt_preemphasis()
790 logXC = celt_log2(QCONST32(1.001f, 20)-MULT16_16(sum, sum)); in alloc_trim_analysis()
792 logXC2 = MAX16(HALF16(logXC), celt_log2(QCONST32(1.001f, 20)-MULT16_16(minXC, minXC))); in alloc_trim_analysis()
950 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis()
952 +MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5)); in dynalloc_analysis()
[all …]
/external/libopus/celt/mips/
Dvq_mipsr1.h57 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
58 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
66 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
67 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
119 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector_mips()
/external/libopus/celt/arm/
Dfixed_armv5e.h119 #undef MULT16_16
131 #define MULT16_16(a, b) (MULT16_16_armv5e(a, b)) macro
/external/libopus/src/
Dmlp.c55 i = SHR32(ADD32(1024,MULT16_16(25, xx)),11);
57 xx -= EXTRACT16(SHR32(MULT16_16(20972,i),8));
Dopus_encoder.c426 g = SHR32(MAC16_16(MULT16_16(w,g2), in stereo_fade()
458 g = SHR32(MAC16_16(MULT16_16(w,g2), in gain_fade()
467 g = SHR32(MAC16_16(MULT16_16(w,g2), in gain_fade()
871 short_alpha = Q15ONE - MULT16_16(25, Q15ONE)/IMAX(50,frame_rate); in compute_stereo_width()
884 pxx = SHR32(MULT16_16(x,x),2); in compute_stereo_width()
885 pxy = SHR32(MULT16_16(x,y),2); in compute_stereo_width()
886 pyy = SHR32(MULT16_16(y,y),2); in compute_stereo_width()
889 pxx += SHR32(MULT16_16(x,x),2); in compute_stereo_width()
890 pxy += SHR32(MULT16_16(x,y),2); in compute_stereo_width()
891 pyy += SHR32(MULT16_16(y,y),2); in compute_stereo_width()
[all …]

12