/external/speex/libspeex/ |
D | fixed_generic.h | 67 #define ADD32(a,b) ((spx_word32_t)(a)+(spx_word32_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 …]
|
D | math_approx.h | 195 …return ADD32(K1, MULT16_16_P13(x2, ADD32(K2, MULT16_16_P13(x2, ADD32(K3, MULT16_16_P13(K4, x2)))))… in spx_cos() 199 …return SUB32(-K1, MULT16_16_P13(x2, ADD32(K2, MULT16_16_P13(x2, ADD32(K3, MULT16_16_P13(K4, x2))))… in spx_cos() 213 …return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32… in _spx_cos_pi_2() 281 …return MULT16_16_P15(x, ADD32(M1, MULT16_16_P15(x, ADD32(M2, MULT16_16_P15(x, ADD32(M3, MULT16_16_… in spx_atan01()
|
D | lpc_bfin.h | 56 ac0 = ADD32(ac0,SHR32(MULT16_16(x[j],x[j]),8)); in _spx_autocorr() 57 ac0 = ADD32(ac0,n); 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()
|
D | filters.c | 102 spx_word32_t vout = ADD32(MULT16_16(num[0], x[i]),mem[0]); in highpass() 104 mem[0] = ADD32(MAC16_16(mem[1], num[1],x[i]), SHL32(MULT16_32_Q15(-den[1],vout),1)); in highpass() 105 mem[1] = ADD32(MULT16_16(num[2],x[i]), SHL32(MULT16_32_Q15(-den[2],vout),1)); in highpass() 214 sum = ADD32(sum,SHR32(sum2,6)); in compute_rms() 243 sum = ADD32(sum,SHR32(sum2,6)); in compute_rms16() 262 sum = ADD32(sum,SHR32(sum2,6)); in compute_rms16() 326 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); in filter_mem16() 332 mem[ord-1] = ADD32(MULT16_16(num[ord-1],xi), MULT16_16(den[ord-1],nyi)); in filter_mem16() 346 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); in iir_mem16() 367 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); in fir_mem16() [all …]
|
D | cb_search_arm4.h | 118 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));
|
D | fixed_debug.h | 164 #define PSHR32(a,shift) (SHR32(ADD32((a),((EXTEND32(1)<<((shift))>>1))),shift)) 205 #define ADD32(a, b) _ADD32(a, b, __FILE__, __LINE__) macro 268 #define MAC16_16(c,a,b) (spx_mips--,ADD32((c),MULT16_16((a),(b)))) 271 #define MAC16_16_P13(c,a,b) (EXTRACT16(ADD32((c),SHR32(ADD32(4096,MULT16_16((a),(b))),13)))) 309 #define MAC16_32_Q11(c,a,b) ADD32((c),MULT16_32_Q11((a),(b))) 315 #define MAC16_32_Q15(c,a,b) ADD32((c),MULT16_32_Q15((a),(b))) 484 #define PDIV32(a,b) DIV32(ADD32((a),(b)>>1),b) 485 #define PDIV32_16(a,b) DIV32_16(ADD32((a),(b)>>1),b)
|
D | lpc.c | 141 ac0 = ADD32(ac0,SHR32(MULT16_16(x[j],x[j]),8)); in _spx_autocorr() 142 ac0 = ADD32(ac0,n); in _spx_autocorr() 162 d = ADD32(d,SHR32(MULT16_16(x[j],x[j-i]), shift)); in _spx_autocorr()
|
D | ltp.c | 71 sum = ADD32(sum,SHR32(part,6)); in inner_prod() 129 sum1 = ADD32(sum1,SHR32(part1,6)); 130 sum2 = ADD32(sum2,SHR32(part2,6)); 131 sum3 = ADD32(sum3,SHR32(part3,6)); 132 sum4 = ADD32(sum4,SHR32(part4,6)); 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() 235 …energy[i-start+1] = SUB32(ADD32(energy[i-start],SHR32(MULT16_16(sw[-i-1],sw[-i-1]),6)), SHR32(MULT… in open_loop_nbest_pitch() 436 x[i][j+1]=ADD32(x[i+1][j],MULT16_16_P14(r[j+1], e0)); in pitch_gain_search_3tap() [all …]
|
D | lsp.c | 162 sum = ADD32(EXTEND32(coef[m]), EXTEND32(MULT16_16_P14(coef[m-1],x))); in cheb_poly_eva() 168 sum = ADD32(sum, EXTEND32(MULT16_16_P14(coef[m-i],b0))); in cheb_poly_eva() 262 *px++ = SUB32(ADD32(EXTEND32(a[i]),EXTEND32(a[lpcrdr-i-1])), *p++); in lpc_to_lsp() 263 *qx++ = ADD32(SUB32(EXTEND32(a[i]),EXTEND32(a[lpcrdr-i-1])), *q++); in lpc_to_lsp() 487 xp[i+1][j+2] = ADD32(SUB32(xp[i][j+2], mult), xp[i][j]); in lsp_to_lpc() 489 xq[i+1][j+2] = ADD32(SUB32(xq[i][j+2], mult), xq[i][j]); in lsp_to_lpc()
|
D | vq.c | 128 dist = ADD32(dist,SHR32(E[i],1)); in vq_nbest_sign() 130 dist = ADD32(dist,.5f*E[i]); in vq_nbest_sign()
|
D | preprocess.c | 309 …return ADD32(EXTEND32(Q15_ONE),EXTEND32(DIV32_16(QCONST32(.1296,23), SHR32(xx,EXPIN_SHIFT-SNR_SHIF… in hypergeom_gain() 797 …spx_word32_t tot_noise = ADD32(ADD32(ADD32(EXTEND32(1), PSHR32(st->noise[i],NOISE_SHIFT)) , st->ec… in speex_preprocess_run() 804 …,15)+MULT16_16_Q15(QCONST16(.89f,15),SQR16_Q15(DIV32_16_Q15(st->old_ps[i],ADD32(st->old_ps[i],tot_… in speex_preprocess_run() 807 …st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gam… in speex_preprocess_run() 814 …st->zeta[0] = PSHR32(ADD32(MULT16_16(QCONST16(.7f,15),st->zeta[0]), MULT16_16(QCONST16(.3f,15),st-… in speex_preprocess_run() 816 …st->zeta[i] = PSHR32(ADD32(ADD32(ADD32(MULT16_16(QCONST16(.7f,15),st->zeta[i]), MULT16_16(QCONST16… in speex_preprocess_run() 819 …st->zeta[i] = PSHR32(ADD32(MULT16_16(QCONST16(.7f,15),st->zeta[i]), MULT16_16(QCONST16(.3f,15),st-… in speex_preprocess_run() 824 Zframe = ADD32(Zframe, EXTEND32(st->zeta[i])); in speex_preprocess_run() 827 …effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppres… in speex_preprocess_run()
|
D | filters_bfin.h | 461 yi2 = ADD32(yi2,SHL32(yi,1)); 489 _y[i] = ADD32(_x[i],SHL32(yi,1)); 500 _y[i] = ADD32(_x[i],SHL32(yi,1));
|
D | quant_lsp.c | 222 lsp[i] = ADD32(lsp[i], LSP_DIV_256(cdbk_nb[id*10+i])); in lsp_unquant_nb() 230 lsp[i] = ADD32(lsp[i], LSP_DIV_1024(cdbk_nb_low2[id*5+i])); in lsp_unquant_nb() 234 lsp[i+5] = ADD32(lsp[i+5], LSP_DIV_512(cdbk_nb_high1[id*5+i])); in lsp_unquant_nb() 238 lsp[i+5] = ADD32(lsp[i+5], LSP_DIV_1024(cdbk_nb_high2[id*5+i])); in lsp_unquant_nb()
|
D | stereo.c | 190 balance = DIV32(largest, ADD32(smallest, 1)); in speex_encode_stereo_int() 234 …e_right = DIV32(QCONST32(1., 22), spx_sqrt(MULT16_32_Q15(e_ratio, ADD32(QCONST32(1., 16), balance)… in speex_decode_stereo() 261 …e_right = DIV32(QCONST32(1., 22), spx_sqrt(MULT16_32_Q15(e_ratio, ADD32(QCONST32(1., 16), balance)… in speex_decode_stereo_int()
|
D | kiss_fftr.c | 238 f2k.i = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); in kiss_fftr2() 240 f1kr = SHL32(ADD32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),13); 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()
|
/external/libopus/celt/ |
D | fixed_generic.h | 40 #define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR((b),16)), SHR(MULT16_16SU((a),((b)&0x0000ffff)),… 43 #define MULT16_32_P16(a,b) ADD32(MULT16_16((a),SHR((b),16)), PSHR(MULT16_16SU((a),((b)&0x0000ffff))… 46 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000… 49 #define MULT32_32_Q31(a,b) ADD32(ADD32(SHL(MULT16_16(SHR((a),16),SHR((b),16)),1), SHR(MULT16_16SU(S… 100 #define ADD32(a,b) ((opus_val32)(a)+(opus_val32)(b)) macro 112 #define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b)))) 116 #define MAC16_32_Q15(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x0000… 124 #define MULT16_16_P13(a,b) (SHR(ADD32(4096,MULT16_16((a),(b))),13)) 125 #define MULT16_16_P14(a,b) (SHR(ADD32(8192,MULT16_16((a),(b))),14)) 126 #define MULT16_16_P15(a,b) (SHR(ADD32(16384,MULT16_16((a),(b))),15))
|
D | _kiss_fft_guts.h | 62 (m).i = ADD32(S_MUL((a).r,(b).i) , S_MUL((a).i,(b).r)); }while(0) 65 do{ (m).r = ADD32(S_MUL((a).r,(b).r) , S_MUL((a).i,(b).i)); \ 70 (m).i = SHR32(ADD32(S_MUL((a).r,(b).i) , S_MUL((a).i,(b).r)),2); }while(0) 84 do {(res).r=ADD32((a).r,(b).r); (res).i=ADD32((a).i,(b).i); \ 90 do {(res).r = ADD32((res).r, (a).r); (res).i = ADD32((res).i,(a).i);\ 94 do {(res).r = ADD32((res).r,(a).r); (res).i = SUB32((res).i,(a).i); \
|
D | celt.c | 103 + MULT16_32_Q15(g11,ADD32(x1,x3)) in comb_filter_const() 104 + MULT16_32_Q15(g12,ADD32(x0,x4)); in comb_filter_const() 151 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter() 152 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter() 154 + MULT16_32_Q15(MULT16_16_Q15(f,g11),ADD32(x1,x3)) in comb_filter() 155 + MULT16_32_Q15(MULT16_16_Q15(f,g12),ADD32(x0,x4)); in comb_filter()
|
D | mathops.c | 80 result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); in frac_div32() 147 …return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32… in _celt_cos_pi_2()
|
D | celt_lpc.c | 128 _y[i ] = SATURATE16(ADD32(EXTEND32(_x[i ]), PSHR32(sum[0], SIG_SHIFT))); in celt_fir() 129 _y[i+1] = SATURATE16(ADD32(EXTEND32(_x[i+1]), PSHR32(sum[1], SIG_SHIFT))); in celt_fir() 130 _y[i+2] = SATURATE16(ADD32(EXTEND32(_x[i+2]), PSHR32(sum[2], SIG_SHIFT))); in celt_fir() 131 _y[i+3] = SATURATE16(ADD32(EXTEND32(_x[i+3]), PSHR32(sum[3], SIG_SHIFT))); in celt_fir() 138 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir()
|
D | fixed_debug.h | 45 #define MULT32_32_Q31(a,b) ADD32(ADD32(SHL32(MULT16_16(SHR32((a),16),SHR((b),16)),1), SHR32(MULT16_… 48 #define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR32((b),16)), SHR32(MULT16_16SU((a),((b)&0x0000fff… 226 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift)) 282 #define ADD32(a, b) ADD32_(a, b, __FILE__, __LINE__) macro 429 #define MAC16_16(c,a,b) (celt_mips-=2,ADD32((c),MULT16_16((a),(b)))) 498 #define MAC16_32_Q15(c,a,b) (celt_mips-=2,ADD32((c),MULT16_32_Q15((a),(b))))
|
D | mathops.h | 230 …return MULT16_16_P15(x, ADD32(M1, MULT16_16_P15(x, ADD32(M2, MULT16_16_P15(x, ADD32(M3, MULT16_16_… in celt_atan01()
|
D | vq.c | 267 yy = ADD32(yy, 1); in alg_quant() 272 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); in alg_quant() 291 xy = ADD32(xy, EXTEND32(X[best_id])); in alg_quant()
|
/external/libopus/celt/x86/ |
D | pitch_sse.h | 150 + MULT16_32_Q15(g11,ADD32(x[i-T+1],x[i-T-1])) in comb_filter_const() 151 + MULT16_32_Q15(g12,ADD32(x[i-T+2],x[i-T-2])); in comb_filter_const()
|
/external/libopus/celt/arm/ |
D | fixed_armv4.h | 69 #define MAC16_32_Q15(c, a, b) ADD32(c, MULT16_32_Q15(a, b))
|