/external/speex/libspeex/ |
D | pseudofloat.h | 228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e); in FLOAT_EXTRACT16() 236 return (EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e; in FLOAT_EXTRACT32() 238 return EXTEND32(a.m)<<a.e; in FLOAT_EXTRACT32() 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 | 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() 261 return VSHR32(EXTEND32(frac), -integer-2); in spx_exp2() 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14))); in spx_atan()
|
D | kiss_fftr.c | 237 f2k.r = SHR32(SUB32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1); in kiss_fftr2() 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() 241 f1ki = SHL32(SUB32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),13); in kiss_fftr2()
|
D | filters.c | 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() 134 } else if (scale > SHR32(EXTEND32(SIG_SCALING), 2)) { 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() 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() 427 y[i] = PSHR32(ADD32(SHL32(EXTEND32(y1),LPC_SHIFT+1),mem2[0]),LPC_SHIFT); in compute_impulse_response() [all …]
|
D | preprocess.c | 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() 309 …return ADD32(EXTEND32(Q15_ONE),EXTEND32(DIV32_16(QCONST32(.1296,23), SHR32(xx,EXPIN_SHIFT-SNR_SHIF… 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() 645 st->frame_shift = 14-spx_ilog2(EXTEND32(max_val)); in preprocess_analysis() 782 …st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st-… 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() 824 Zframe = ADD32(Zframe, EXTEND32(st->zeta[i])); in speex_preprocess_run() [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() 461 xin = SHL32(EXTEND32(1), (QIMP-1)); /* 0.5 in QIMP format */ in lsp_to_lpc() 617 spx_word16_t tmp = DIV32_16(SHL32(EXTEND32(1 + subframe),14),nb_subframes); in lsp_interpolate()
|
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() 375 prop_sum += EXTEND32(prop[i]); in mdf_adjust_prop() 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() 490 sum = EXTEND32(st->prop[0]); in speex_echo_state_init_mc() 494 sum = ADD32(sum, EXTEND32(st->prop[i])); in speex_echo_state_init_mc() 732 …tmp32 = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(MULT16_16_P15(st->preemph, st->… in speex_echo_cancellation() [all …]
|
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 | fixed_generic.h | 44 #define EXTEND32(x) ((spx_word32_t)(x)) macro 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 61 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
|
D | fixed_debug.h | 90 #define EXTEND32(x) _EXTEND32(x, __FILE__, __LINE__) macro 164 #define PSHR32(a,shift) (SHR32(ADD32((a),((EXTEND32(1)<<((shift))>>1))),shift)) 282 if (ABS32(b)>=(EXTEND32(1)<<(15+Q))) in _MULT16_32_QX() 298 if (ABS32(b)>=(EXTEND32(1)<<(15+Q))) in MULT16_32_PX() 300 res = ((((long long)a)*(long long)b) + ((EXTEND32(1)<<Q)>>1))>> Q; in MULT16_32_PX()
|
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 | 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() 716 spx_word16_t fact = DIV32_16(SHL32(EXTEND32(tmp),14),gain_sum); in pitch_unquant_3tap() 800 target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700)); in forced_pitch_quant()
|
D | lpc.c | 93 spx_word32_t rr = NEG32(SHL32(EXTEND32(ac[i + 1]),13)); in _spx_lpc()
|
D | nb_celp.c | 409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT); in nb_encode() 681 pi_g = ADD32(pi_g, SUB32(EXTEND32(interp_qlpc[i+1]),EXTEND32(interp_qlpc[i]))); in nb_encode() 802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); in nb_encode() 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); in nb_encode() 1238 lsp_dist = ADD32(lsp_dist, EXTEND32(ABS(st->old_qlsp[i] - qlsp[i]))); in nb_decode() 1528 pi_g = ADD32(pi_g, SUB32(EXTEND32(ak[i+1]),EXTEND32(ak[i]))); in nb_decode()
|
/external/libopus/celt/ |
D | mathops.h | 57 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); in celt_maxabs16() 212 return VSHR32(EXTEND32(frac), -integer-2); in celt_exp2() 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 | mathops.c | 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() 205 return VSHR32(EXTEND32(r),i-16); in celt_rcp()
|
D | celt_lpc.c | 119 opus_val32 sum = SHL32(EXTEND32(_x[i]), 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()
|
D | fixed_c6x.h | 67 #define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, le…
|
D | fixed_c5x.h | 76 #define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, le…
|
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() 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() 506 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
|
D | fixed_generic.h | 81 #define EXTEND32(x) ((opus_val32)(x)) macro 93 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 100 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
|
D | vq.c | 86 c = celt_cos_norm(EXTEND32(theta)); in exp_rotation() 87 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ in exp_rotation() 279 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); in alg_quant() 298 xy = ADD32(xy, EXTEND32(X[best_id])); in alg_quant()
|
D | celt_encoder.c | 338 norm = SHL32(EXTEND32(len2),6+14)/ADD32(EPSILON,SHR32(mean,1)); in transient_analysis() 406 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision() 543 L1 += EXTEND32(ABS16(tmp[i])); in l1_metric() 853 L = EXTEND32(X[j]); in stereo_analysis() 854 R = EXTEND32(X[N0+j]); in stereo_analysis() 1036 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); in dynalloc_analysis() 1039 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); in dynalloc_analysis() 1042 boost = (int)SHR32(EXTEND32(follower[i])*width/6,DB_SHIFT); in dynalloc_analysis() 1966 alpha = celt_rcp(SHL32(EXTEND32(st->vbr_count+20),16)); in celt_encode_with_ec()
|
/external/libopus/celt/x86/ |
D | celt_lpc_sse.c | 94 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); in celt_fir_sse4_1() 102 noA = EXTEND32(1) << SIG_SHIFT >> 1; in celt_fir_sse4_1() 125 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir_sse4_1()
|
/external/libopus/src/ |
D | mlp.c | 107 opus_val32 sum = SHL32(EXTEND32(*W++),8); 115 opus_val32 sum = SHL32(EXTEND32(*W++),14);
|