/external/libopus/celt/ |
D | celt.c | 103 x4 = SHL32(x[-T-2], 1); in comb_filter_const_c() 104 x3 = SHL32(x[-T-1], 1); in comb_filter_const_c() 105 x2 = SHL32(x[-T], 1); in comb_filter_const_c() 106 x1 = SHL32(x[-T+1], 1); in comb_filter_const_c() 110 x0=SHL32(x[i-T+2],1); in comb_filter_const_c() 115 x4=SHL32(x[i-T+3],1); in comb_filter_const_c() 120 x3=SHL32(x[i-T+4],1); in comb_filter_const_c() 125 x2=SHL32(x[i-T+5],1); in comb_filter_const_c() 130 x1=SHL32(x[i-T+6],1); in comb_filter_const_c() 140 x0=SHL32(x[i-T+2],1); in comb_filter_const_c()
|
D | mathops.c | 80 result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); in frac_div32() 86 return SHL32(result, 2); in frac_div32() 159 if (x>SHL32(EXTEND32(1), 16)) in celt_cos_norm() 160 x = SUB32(SHL32(EXTEND32(1), 17),x); in celt_cos_norm() 163 if (x<SHL32(EXTEND32(1), 15)) in celt_cos_norm()
|
D | quant_bands.c | 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; in quant_coarse_energy_impl() 248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in quant_coarse_energy_impl() 250 tmp = PSHR32(MULT16_16(coef,oldE),8) + prev[c] + SHL32(q,7); in quant_coarse_energy_impl() 255 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in quant_coarse_energy_impl() 289 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); in quant_coarse_energy() 387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy() 479 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in unquant_coarse_energy() 482 tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7); in unquant_coarse_energy() 487 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in unquant_coarse_energy() 506 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy() [all …]
|
D | fixed_generic.h | 90 #define SHL32(a,shift) ((opus_int32)((opus_uint32)(a)<<(shift))) macro 95 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) 99 #define SHL(a,shift) SHL32(a,shift)
|
D | celt_lpc.c | 61 r = -frac_div32(SHL32(rr,3), error); in _celt_lpc() 119 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); in celt_fir_c() 294 ac[0] += SHL32((opus_int32)1, -shift); in _celt_autocorr() 299 ac[i] = SHL32(ac[i], shift2); in _celt_autocorr()
|
D | mathops.h | 244 arg = celt_div(SHL32(EXTEND32(y),15),x); in celt_atan2p() 250 arg = celt_div(SHL32(EXTEND32(x),15),y); in celt_atan2p()
|
D | bands.c | 120 sum = MAC16_16(sum, EXTRACT16(SHL32(X[j+c*N],-shift)), in compute_band_energies() 121 EXTRACT16(SHL32(X[j+c*N],-shift))); in compute_band_energies() 148 g = EXTRACT16(celt_rcp(SHL32(E,3))); in normalise_bands() 253 *f++ = SHL32(MULT16_16(*x++, g), -shift); in denormalise_bands() 294 t = SHL32(t, (7-shift)<<1); in anti_collapse() 376 a1 = DIV32_16(SHL32(EXTEND32(left),14),norm); in intensity_stereo() 377 a2 = DIV32_16(SHL32(EXTEND32(right),14),norm); in intensity_stereo() 1191 n = celt_sqrt(SHL32(EXTEND32(N0),22)); in quant_band()
|
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_… 203 #define SHL32(a, shift) SHL32_(a, shift, __FILE__, __LINE__) macro 227 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
|
/external/libopus/celt/arm/ |
D | kiss_fft_armv5e.h | 61 (m).r = SHL32(SUB32(mr1__, mr2__), 1); \ 62 (m).i = SHL32(mi__, 1); \ 111 (m).r = SHL32(mr__, 1); \ 112 (m).i = SHL32(SUB32(mi1__, mi2__), 1); \
|
/external/speex/libspeex/ |
D | preprocess.c | 117 a = SHL32(a,8); in DIV32_16_Q8() 143 a = SHL32(a,15)-a; in DIV32_16_Q15() 281 …tmp = SQR16_Q15(QCONST16(.5f,15)-MULT16_16_P15(QCONST16(.5f,15),spx_cos_norm(SHL32(EXTEND32(x),2))… in conj_window() 284 w[i]=spx_sqrt(SHL32(EXTEND32(tmp),15)); in conj_window() 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() 317 …return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,… in qcurve() 334 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor() 344 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo… in compute_gain_floor() 782 …MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st->ps[i],NOISE_SH… in speex_preprocess_run() [all …]
|
D | filters.c | 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() 118 y[i] = SHL32(MULT16_32_Q14(EXTRACT16(SHR32(x[i],7)),scale),7); in signal_mul() 125 if (scale > SHL32(EXTEND32(SIG_SCALING), 8)) in signal_div() 129 scale_1 = EXTRACT16(PDIV32_16(SHL32(EXTEND32(SIG_SCALING),7),scale)); in signal_div() 137 scale_1 = DIV32_16(SHL32(EXTEND32(SIG_SCALING),3),scale); in signal_div() 147 scale_1 = DIV32_16(SHL32(EXTEND32(SIG_SCALING),3),scale); in signal_div() 217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); in compute_rms() 427 y[i] = PSHR32(ADD32(SHL32(EXTEND32(y1),LPC_SHIFT+1),mem2[0]),LPC_SHIFT); in compute_impulse_response() 646 tmp = SHL32(exc[i-(pitch-maxj+3)],15); in interp_pitch() [all …]
|
D | math_approx.h | 174 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()
|
D | fixed_generic.h | 48 #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) : \
|
D | filters_bfin.h | 453 spx_word32_t yi = SHL32(EXTEND32(y[i]),LPC_SHIFT); 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 | cb_search.c | 188 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); in split_cb_search_shape_sign_N1() 191 … e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); in split_cb_search_shape_sign_N1() 486 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); in split_cb_search_shape_sign() 489 e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); in split_cb_search_shape_sign() 560 exc[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5); in split_cb_shape_sign_unquant() 563 … exc[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5)); in split_cb_shape_sign_unquant() 594 exc[i]+=SHL32(EXTEND32(tmp[i]),8); in noise_codebook_quant() 611 exc[i]=SHL32(EXTEND32(speex_rand(1, seed)),SIG_SHIFT); in noise_codebook_unquant()
|
D | ltp.c | 298 …g = DIV32(SHL32(EXTEND32(corr16[i-start]),cshift), 10+SHR32(MULT16_16(spx_sqrt(e0),spx_sqrt(SHL32(… in open_loop_nbest_pitch() 468 C[0] = SHL32(C[0],1); in pitch_gain_search_3tap() 469 C[1] = SHL32(C[1],1); in pitch_gain_search_3tap() 470 C[2] = SHL32(C[2],1); in pitch_gain_search_3tap() 471 C[3] = SHL32(C[3],1); in pitch_gain_search_3tap() 472 C[4] = SHL32(C[4],1); in pitch_gain_search_3tap() 473 C[5] = SHL32(C[5],1); in pitch_gain_search_3tap() 716 spx_word16_t fact = DIV32_16(SHL32(EXTEND32(tmp),14),gain_sum); in pitch_unquant_3tap()
|
D | mdf.c | 206 spx_word32_t vout = mem[0] + SHL32(EXTEND32(vin),15); in filter_dc_notch16() 208 mem[0] = mem[1] + SHL32(SHL32(-EXTEND32(vin),15) + MULT16_32_Q15(radius,vout),1); in filter_dc_notch16() 212 mem[1] = SHL32(EXTEND32(vin),15) - MULT16_32_Q15(den2,vout); in filter_dc_notch16() 434 st->spec_average = DIV32_16(SHL32(EXTEND32(st->frame_size), 15), st->sampling_rate); in speex_echo_state_init_mc() 436 st->beta0 = DIV32_16(SHL32(EXTEND32(st->frame_size), 16), st->sampling_rate); in speex_echo_state_init_mc() 437 st->beta_max = DIV32_16(SHL32(EXTEND32(st->frame_size), 14), st->sampling_rate); in speex_echo_state_init_mc() 859 …st->W[chan*N*K*M + j*N*K + speak*N + i] -= SHL32(EXTEND32(st->wtmp2[i]),16+NORMALIZE_SCALEDOWN-NOR… in speex_echo_cancellation() 949 st->W[i] = SHL32(EXTEND32(st->foreground[i]),16); in speex_echo_cancellation() 1107 tmp32 = ADD32(SHR32(Sxx,13), ADD32(tmp32, SHL32(tmp32,1))); in speex_echo_cancellation() 1130 …if (!st->adapted && st->sum_adapt > SHL32(EXTEND32(M),15) && MULT16_32_Q15(st->leak_estimate,Syy) … in speex_echo_cancellation() [all …]
|
D | kiss_fft.c | 57 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()
|
D | pseudofloat.h | 274 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()
|
D | kiss_fftr.c | 67 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()
|
D | sb_celp.c | 590 filter_ratio=EXTRACT16(SATURATE(PDIV32(SHL32(ADD32(rl,82),7),ADD32(82,rh)),32767)); in sb_encode() 661 scale = SHL32(MULT16_16(PDIV32_16(SHL32(EXTEND32(gc),SIG_SHIFT-6),filter_ratio),(1+el)),6); in sb_encode() 1020 filter_ratio=EXTRACT16(SATURATE(PDIV32(SHL32(ADD32(rl,82),7),ADD32(82,rh)),32767)); in sb_decode() 1038 …exc[i]=SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i]),SHL32(g,6))… in sb_decode() 1039 …exc[i+1]=NEG32(SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i+1]),S… in sb_decode() 1053 scale = SHL32(PDIV32(SHL32(MULT16_16(gc, el),3), filter_ratio),SIG_SHIFT-3); in sb_decode()
|
D | lpc.c | 93 spx_word32_t rr = NEG32(SHL32(EXTEND32(ac[i + 1]),13)); in _spx_lpc()
|
D | nb_celp.c | 407 …spx_sqrt(QCONST32(1.,28)-MULT16_32_Q15(QCONST16(.8,15),SHL32(MULT16_16(ol_pitch_coef,ol_pitch_coef… in nb_encode() 409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT); in nb_encode() 727 mem[i]=SHL32(st->mem_sp[i],1); in nb_encode() 733 mem[i]=SHL32(st->mem_sw[i],1); in nb_encode() 739 mem[i]=SHL32(st->mem_sw[i],1); in nb_encode() 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); in nb_encode() 853 … exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_encode() 872 … exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_encode() 1419 … exc[i]=EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); in nb_decode()
|
/external/libopus/src/ |
D | mlp.c | 107 opus_val32 sum = SHL32(EXTEND32(*W++),8); 115 opus_val32 sum = SHL32(EXTEND32(*W++),14);
|
/external/libopus/celt/x86/ |
D | celt_lpc_sse.c | 94 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); in celt_fir_sse4_1()
|