/external/libopus/celt/mips/ |
D | vq_mipsr1.h | 52 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 53 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 61 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 62 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 110 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
|
/external/libopus/celt/ |
D | vq.c | 59 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 60 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 68 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 69 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 139 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); in normalise_residual() 218 rcp = EXTRACT16(MULT16_32_Q16(K, celt_rcp(sum))); in op_pvq_search_c() 221 rcp = EXTRACT16(MULT16_32_Q16(K+0.8f, celt_rcp(sum))); in op_pvq_search_c() 274 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[0])),rshift)); in op_pvq_search_c() 286 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); in op_pvq_search_c() 403 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
|
D | fixed_generic.h | 86 #define EXTRACT16(x) ((opus_val16)(x)) macro 110 #define SATURATE16(x) (EXTRACT16((x)>32767 ? 32767 : (x)<-32768 ? -32768 : (x))) 113 #define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a)))) 115 #define SROUND16(x,a) EXTRACT16(SATURATE(PSHR32(x,a), 32767)); 184 return EXTRACT16(x); in SIG2WORD16_generic()
|
D | mathops.c | 166 return _celt_cos_pi_2(EXTRACT16(x)); in celt_cos_norm() 168 return NEG16(_celt_cos_pi_2(EXTRACT16(65536-x))); in celt_cos_norm()
|
D | bands.c | 116 sum = MAC16_16(sum, EXTRACT16(SHR32(X[j+c*N],shift)), in compute_band_energies() 117 EXTRACT16(SHR32(X[j+c*N],shift))); in compute_band_energies() 121 sum = MAC16_16(sum, EXTRACT16(SHL32(X[j+c*N],-shift)), in compute_band_energies() 122 EXTRACT16(SHL32(X[j+c*N],-shift))); in compute_band_energies() 149 g = EXTRACT16(celt_rcp(SHL32(E,3))); in normalise_bands() 324 opus_val32 r32 = SHR32(celt_exp2(-EXTRACT16(Ediff)),1); in anti_collapse() 408 X[j] = EXTRACT16(SHR32(MAC16_16(MULT16_16(a1, l), a2, r), 14)); in intensity_stereo() 421 X[j] = EXTRACT16(SHR32(ADD32(l, r), 15)); in stereo_split() 422 Y[j] = EXTRACT16(SHR32(SUB32(r, l), 15)); in stereo_split() 473 X[j] = EXTRACT16(PSHR32(MULT16_16(lgain, SUB16(l,r)), kl+1)); in stereo_merge() [all …]
|
D | mathops.h | 279 return SHR16(celt_atan01(EXTRACT16(arg)),1); in celt_atan2p() 285 return 25736-SHR16(celt_atan01(EXTRACT16(arg)),1); in celt_atan2p()
|
D | fixed_debug.h | 113 #define EXTRACT16(x) EXTRACT16_(x, __FILE__, __LINE__) macro 237 #define ROUND16(x,a) (celt_mips--,EXTRACT16(PSHR32((x),(a)))) 238 #define SROUND16(x,a) (celt_mips--,EXTRACT16(SATURATE(PSHR32(x,a), 32767))); 828 return EXTRACT16(x); in SIG2WORD16_generic()
|
D | pitch.c | 76 xcorr16 = EXTRACT16(VSHR32(xcorr[i], xshift)); in find_best_pitch() 430 return EXTRACT16(MIN32(g, Q15ONE)); in compute_pitch_gain()
|
D | arch.h | 225 #define EXTRACT16(x) (x) macro
|
D | celt_lpc.c | 131 _lpc[i] = EXTRACT16(PSHR32(lpc[i], 13)); /* Q25->Q12 */ in _celt_lpc()
|
D | quant_bands.c | 197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), in quant_coarse_energy_impl()
|
/external/speex/libspeexdsp/ |
D | math_approx.h | 126 res = MULT16_16(EXTRACT16(SHR32(*seed,16)),std); in speex_rand() 127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand() 225 return _spx_cos_pi_2(EXTRACT16(x)); in spx_cos_norm() 227 return NEG32(_spx_cos_pi_2(EXTRACT16(65536-x))); in spx_cos_norm() 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14))); in spx_atan()
|
D | filterbank.c | 63 max_mel = toBARK(EXTRACT16(sampling/2)); in filterbank_new() 82 curr_freq = EXTRACT16(MULT16_32_P15(i,df)); in filterbank_new() 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 | fixed_debug.h | 77 #define EXTRACT16(x) _EXTRACT16(x, __FILE__, __LINE__) macro 284 #define MAC16_16_Q11(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),11))))) 285 #define MAC16_16_Q13(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),13))))) 286 #define MAC16_16_P13(c,a,b) (EXTRACT16(ADD32((c),SHR32(ADD32(4096,MULT16_16((a),(b))),13))))
|
D | preprocess.c | 324 …noise_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),noise_suppress))… in compute_gain_floor() 325 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),effective_echo… in compute_gain_floor() 334 …echo_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),effective_echo_su… in compute_gain_floor() 335 …gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),noise_suppress… in compute_gain_floor() 803 …st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gam… in speex_preprocess_run() 823 …effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppres… in speex_preprocess_run() 851 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run() 859 …mp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT… in speex_preprocess_run() 861 /*Q8*/tmp = EXTRACT16(PSHR32(MULT16_16(PDIV32_16(SHL32(EXTEND32(q),8),(Q15_ONE-q)),tmp),8)); in speex_preprocess_run() 893 g = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run()
|
D | mdf.c | 357 … tmp += MULT16_16(EXTRACT16(SHR32(W[p*N*M + i*N+j],18)), EXTRACT16(SHR32(W[p*N*M + i*N+j],18))); in mdf_adjust_prop() 742 st->input[chan*st->frame_size+i] = EXTRACT16(tmp32); in speex_echo_cancellation() 766 st->x[speak*N+i+st->frame_size] = EXTRACT16(tmp32); in speex_echo_cancellation() 840 … st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16)); in speex_echo_cancellation() 925 st->foreground[i] = EXTRACT16(PSHR32(st->W[i],16)); in speex_echo_cancellation() 1264 st->wtmp2[i] = EXTRACT16(PSHR32(st->W[j*N+i],16+NORMALIZE_SCALEDOWN)); in speex_echo_ctl()
|
D | fixed_generic.h | 43 #define EXTRACT16(x) ((spx_word16_t)(x)) macro
|
D | arch.h | 157 #define EXTRACT16(x) (x) macro
|
D | pseudofloat.h | 228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e); in FLOAT_EXTRACT16()
|
/external/speex/tmv/ |
D | preprocess_tm.h | 689 …priori = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,posti)), MULT16_16(Q15_ONE-gamma,DIV32_16_… in preprocess_compute_SNR() 791 gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in preprocess_compute_emgain() 799 …tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+priori),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(th… in preprocess_compute_emgain() 801 tmp = EXTRACT16(PSHR32(MULT16_16(PDIV32_16(SHL32(EXTEND32(q),8),(Q15_ONE-q)),tmp),8)); in preprocess_compute_emgain() 846 g = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in preprocess_compute_linear_gain() 1072 …effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppres… in speex_preprocess_run()
|
D | mdf_tm.h | 375 x[i] = EXTRACT16(tmp32); in mdf_preemph() 541 wtmp2[i] = EXTRACT16(PSHR32(W[i],NORMALIZE_SCALEDOWN+16)); in mdf_update_weight()
|
/external/libopus/celt/arm/ |
D | fixed_armv5e.h | 145 return EXTRACT16(res); in SIG2WORD16_armv6()
|
/external/rnnoise/src/ |
D | pitch.c | 77 xcorr16 = EXTRACT16(VSHR32(xcorr[i], xshift)); in find_best_pitch() 413 return EXTRACT16(MIN32(g, Q15ONE)); in compute_pitch_gain()
|
D | arch.h | 195 #define EXTRACT16(x) (x) macro
|
/external/libopus/src/ |
D | opus_encoder.c | 399 out[channels*i+c] = EXTRACT16(SATURATE(PSHR32(y, 14), 32767)); in dc_reject() 463 diff = EXTRACT16(HALF32((opus_val32)in[i*channels] - (opus_val32)in[i*channels+1])); in stereo_fade() 471 diff = EXTRACT16(HALF32((opus_val32)in[i*channels] - (opus_val32)in[i*channels+1])); in stereo_fade() 716 return EXTRACT16(MIN32(Q15ONE, MULT16_16(20, mem->max_follower))); in compute_stereo_width()
|