/external/libopus/celt/mips/ |
D | vq_mipsr1.h | 57 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()
|
D | fixed_generic_mipsr1.h | 109 #undef PSHR32 110 static inline int PSHR32(int a, int shift) in PSHR32() function
|
D | mdct_mipsr1.h | 153 yc.r = PSHR32(MULT16_32_Q16(scale, yc.r), scale_shift); in clt_mdct_forward() 154 yc.i = PSHR32(MULT16_32_Q16(scale, yc.i), scale_shift); in clt_mdct_forward()
|
/external/speex/libspeex/ |
D | filters.c | 103 yi = EXTRACT16(SATURATE(PSHR32(vout,14),32767)); in highpass() 128 scale = PSHR32(scale, SIG_SHIFT); in signal_div() 136 scale = PSHR32(scale, SIG_SHIFT-5); in signal_div() 140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8); in signal_div() 144 scale = PSHR32(scale, SIG_SHIFT-7); in signal_div() 150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6); in signal_div() 217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); in compute_rms() 326 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767)); 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 | preprocess.c | 311 …return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),… in hypergeom_gain() 334 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor() 335 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15))); 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() 345 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15))); in compute_gain_floor() 391 …in_floor[i] = FRAC_SCALING*sqrt(noise_floor*PSHR32(noise[i],NOISE_SHIFT) + echo_floor*echo[i])/sqr… in compute_gain_floor() 659 st->ps[i] = PSHR32(st->ps[i], 2*st->frame_shift); in preprocess_analysis() 781 if (!st->update_prob[i] || st->ps[i] < PSHR32(st->noise[i], NOISE_SHIFT)) in speex_preprocess_run() 797 …spx_word32_t tot_noise = ADD32(ADD32(ADD32(EXTEND32(1), PSHR32(st->noise[i],NOISE_SHIFT)) , st->ec… 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() [all …]
|
D | kiss_fftr.c | 238 f2k.i = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); in kiss_fftr2() 247 freqdata[2*k-1] = PSHR32(f1kr + twr, 15); in kiss_fftr2() 248 freqdata[2*k] = PSHR32(f1ki + twi, 15); in kiss_fftr2() 249 freqdata[2*(ncfft-k)-1] = PSHR32(f1kr - twr, 15); in kiss_fftr2() 250 freqdata[2*(ncfft-k)] = PSHR32(twi - f1ki, 15); in kiss_fftr2()
|
D | stereo.c | 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() 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()
|
D | lsp.c | 273 *px = PSHR32(*px,2); in lpc_to_lsp() 274 *qx = PSHR32(*qx,2); in lpc_to_lsp() 279 P[m] = PSHR32(P[m],3); in lpc_to_lsp() 280 Q[m] = PSHR32(Q[m],3); in lpc_to_lsp() 506 a = PSHR32(xp[m][j+2] + xout1 + xq[m][j+2] - xout2, shift); in lsp_to_lpc()
|
D | mdf.c | 213 out[i] = SATURATE32(PSHR32(MULT16_32_Q15(radius,vout),15),32767); in filter_dc_notch16() 267 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum() 276 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum() 277 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT); in spectral_mul_accum() 284 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum() 294 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16() 303 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16() 304 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT); in spectral_mul_accum16() 311 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16() 846 … st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16)); in speex_echo_cancellation() [all …]
|
D | nb_celp.c | 754 target[i]=EXTRACT16(SATURATE(SUB32(sw[i],PSHR32(ringing[i],1)),32767)); in nb_encode() 802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); in nb_encode() 809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT)); in nb_encode() 816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,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() 1424 innov_save[i] = EXTRACT16(PSHR32(innov[i], SIG_SHIFT)); in nb_decode() 1444 …_offset]=MULT16_16(spx_sqrt(MULT16_16_16(2,ol_pitch)),EXTRACT16(PSHR32(MULT16_16(g,PSHR32(ol_gain,… in nb_decode() 1453 …SUB16(MULT16_16_Q15(Q15_ONE-MULT16_16_16(QCONST16(.85f,9),g),EXTRACT16(PSHR32(innov[i],SIG_SHIFT))… in nb_decode() [all …]
|
D | _kiss_fft_guts.h | 72 do{ (m).r = PSHR32( smul((a).r,(b).r) - smul((a).i,(b).i),17 ); \ 73 (m).i = PSHR32( smul((a).r,(b).i) + smul((a).i,(b).r),17 ); }while(0)
|
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()
|
D | fixed_generic.h | 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro 57 (PSHR32(x, shift)))
|
D | filterbank.c | 96 val = DIV32_16(mel - id1*mel_interval,EXTRACT16(PSHR32(mel_interval,15))); in filterbank_new() 167 ps[i] = EXTRACT16(PSHR32(tmp,15)); in filterbank_compute_psd16()
|
D | lpc.c | 97 r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8)); in _spx_lpc()
|
D | cb_search.c | 94 t[n] = SUB16(t[n],PSHR32(MULT16_16(g,r[n]),13)); in target_update() 233 r2[j] = EXTRACT16(PSHR32(e[j] ,6)); in split_cb_search_shape_sign_N1() 506 r2[j] = EXTRACT16(PSHR32(e[j] ,6)); in split_cb_search_shape_sign()
|
/external/libopus/celt/ |
D | celt_lpc.c | 124 _y[i] = SATURATE16(PSHR32(sum, SIG_SHIFT)); in celt_fir_c() 131 _y[i ] = SATURATE16(ADD32(EXTEND32(_x[i ]), PSHR32(sum[0], SIG_SHIFT))); in celt_fir_c() 132 _y[i+1] = SATURATE16(ADD32(EXTEND32(_x[i+1]), PSHR32(sum[1], SIG_SHIFT))); in celt_fir_c() 133 _y[i+2] = SATURATE16(ADD32(EXTEND32(_x[i+2]), PSHR32(sum[2], SIG_SHIFT))); in celt_fir_c() 134 _y[i+3] = SATURATE16(ADD32(EXTEND32(_x[i+3]), PSHR32(sum[3], SIG_SHIFT))); in celt_fir_c() 141 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir_c() 278 xx[i] = PSHR32(xptr[i], shift); in _celt_autocorr()
|
D | quant_bands.c | 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; in quant_coarse_energy_impl() 246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(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() 254 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 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() 482 tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7); in unquant_coarse_energy() 486 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); in unquant_coarse_energy() 487 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in unquant_coarse_energy()
|
D | vq.c | 55 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() 135 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); in normalise_residual() 369 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
|
D | fixed_generic.h | 93 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro 106 #define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a)))) 160 x = PSHR32(x, SIG_SHIFT); in SIG2WORD16_generic()
|
D | fixed_debug.h | 60 #define PSHR(a,b) PSHR32(a,b) 226 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift)) macro 229 #define ROUND16(x,a) (celt_mips--,EXTRACT16(PSHR32((x),(a)))) 773 x = PSHR32(x, SIG_SHIFT); in SIG2WORD16_generic()
|
D | mdct.c | 208 yc.r = PSHR32(MULT16_32_Q16(scale, yc.r), scale_shift); in clt_mdct_forward_c() 209 yc.i = PSHR32(MULT16_32_Q16(scale, yc.i), scale_shift); in clt_mdct_forward_c()
|
/external/libopus/celt/x86/ |
D | celt_lpc_sse.c | 99 _y[i] = SATURATE16(PSHR32(sum, SIG_SHIFT)); in celt_fir_sse4_1() 125 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir_sse4_1()
|
/external/libopus/celt/arm/ |
D | fixed_arm64.h | 33 #define SIG2WORD16(x) (vqmovns_s32(PSHR32((x), SIG_SHIFT)))
|
/external/libopus/src/ |
D | mlp.c | 118 out[j] = tansig_approx(EXTRACT16(PSHR32(sum,17)));
|