/external/libopus/celt/ |
D | mathops.c | 108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); in celt_rsqrt_norm() 114 SUB16(MULT16_16_Q15(y, 12288), 16384)))); in celt_rsqrt_norm() 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() 196 r = SUB16(r, MULT16_16_Q15(r, in celt_rcp() 200 r = SUB16(r, ADD16(1, MULT16_16_Q15(r, in celt_rcp()
|
D | quant_bands.c | 149 opus_val16 d = SUB16(SHR16(eBands[i+c*len], 3), SHR16(oldEBands[i+c*len], 3)); in loss_distortion() 209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); in quant_coarse_energy_impl() 387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy() 506 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
|
D | vq.c | 82 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ in exp_rotation() 391 s = SUB16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
|
D | fixed_generic.h | 98 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) macro
|
D | arch.h | 174 #define SUB16(a,b) ((a)-(b)) macro
|
D | bands.c | 439 X[j] = EXTRACT16(PSHR32(MULT16_16(lgain, SUB16(l,r)), kl+1)); in stereo_merge() 1290 X[0] = SUB16(tmp,Y[0]); in quant_band_stereo() 1293 X[1] = SUB16(tmp,Y[1]); in quant_band_stereo()
|
D | fixed_debug.h | 259 #define SUB16(a, b) SUB16_(a, b, __FILE__, __LINE__) macro
|
D | celt_encoder.c | 409 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision() 1651 temporal_vbr = SUB16(frame_avg,st->spec_avg); in celt_encode_with_ec()
|
/external/speex/libspeex/ |
D | math_approx.h | 170 x = SUB16(16384,x); in spx_acos() 178 ret = SUB16(25736,ret); in spx_acos() 197 x = SUB16(25736,x); 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() 300 return SUB16(25736, SHR16(spx_atan01(x),1)); in spx_atan()
|
D | quant_lsp.c | 111 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5)); in lsp_quant() 122 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_quant() 143 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5)); in lsp_weight_quant() 154 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_weight_quant() 171 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR(i)); in lsp_quant_nb() 254 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR(i)); in lsp_quant_lbr() 340 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR_HIGH(i)); in lsp_quant_high()
|
D | quant_lsp_bfin.h | 91 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_quant() 161 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5)); in lsp_weight_quant()
|
D | cb_search.c | 94 t[n] = SUB16(t[n],PSHR32(MULT16_16(g,r[n]),13)); in target_update() 179 t[subvect_size*i+m] = SUB16(t[subvect_size*i+m], res[m]); in split_cb_search_shape_sign_N1() 236 target[j]=SUB16(target[j],PSHR16(r2[j],2)); in split_cb_search_shape_sign_N1() 509 target[j]=SUB16(target[j],PSHR16(r2[j],2)); in split_cb_search_shape_sign()
|
D | lsp.c | 166 b0 = SUB16(MULT16_16_Q13(x,b0), b1); in cheb_poly_eva() 331 dd = MULT16_16_Q15(delta,SUB16(FREQ_SCALE, MULT16_16_Q14(MULT16_16_Q14(xl,xl),14000))); in lpc_to_lsp() 339 xr = SUB16(xl, dd); /* interval spacing */ in lpc_to_lsp()
|
D | lpc.c | 112 error = SUB16(error,MULT16_16_Q13(r,MULT16_16_Q13(error,r))); in _spx_lpc()
|
D | mdf.c | 716 ss_1 = SUB16(32767,ss); in speex_echo_cancellation() 804 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->e[chan*N+i+st->frame_size]); in speex_echo_cancellation() 886 st->e[chan*N+i] = SUB16(st->e[chan*N+i+st->frame_size], st->y[chan*N+i+st->frame_size]); in speex_echo_cancellation() 889 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->y[chan*N+i+st->frame_size]); in speex_echo_cancellation() 956 … st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->y[chan*N+i+st->frame_size]); in speex_echo_cancellation() 1068 …st->Eh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Eh[j]), st->spec_average,… in speex_echo_cancellation() 1069 …st->Yh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Yh[j]), st->spec_average,… in speex_echo_cancellation()
|
D | preprocess.c | 283 tmp=SUB16(Q15_ONE,tmp); in conj_window() 800 st->post[i] = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); in speex_preprocess_run() 827 …effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppres… in speex_preprocess_run() 918 …tmp = MULT16_16_P15(p,spx_sqrt(SHL32(EXTEND32(st->gain[i]),15))) + MULT16_16_P15(SUB16(Q15_ONE,p),… in speex_preprocess_run() 930 …tmp = MULT16_16_P15(p,spx_sqrt(SHL32(EXTEND32(st->gain[i]),15))) + MULT16_16_P15(SUB16(Q15_ONE,p),… in speex_preprocess_run()
|
D | arch.h | 182 #define SUB16(a,b) ((a)-(b)) macro
|
D | fixed_generic.h | 66 #define SUB16(a,b) ((spx_word16_t)(a)-(spx_word16_t)(b)) macro
|
D | filterbank.c | 100 bank->filter_left[i] = SUB16(Q15_ONE,val); in filterbank_new()
|
D | filters.c | 466 y2k=SUB32(y2k,MULT16_16(a[j],SUB16(x[i+j],x2[i-j]))); in qmf_decomp() 469 y2k=ADD32(y2k,MULT16_16(a[j],SUB16(x[i+j],x2[i-j]))); in qmf_decomp()
|
D | fixed_debug.h | 190 #define SUB16(a, b) _SUB16(a, b, __FILE__, __LINE__) macro
|
D | ltp.c | 520 new_target[i] = SUB16(new_target[i], EXTRACT16(PSHR32(tmp,6))); in pitch_gain_search_3tap()
|
D | nb_celp.c | 1052 …noise_gain = MULT16_16_Q15(innov_gain, MULT16_16_Q15(fact, SUB16(Q15ONE,MULT16_16_Q15(pitch_gain,p… in nb_decode_lost() 1453 …SUB16(MULT16_16_Q15(Q15_ONE-MULT16_16_16(QCONST16(.85f,9),g),EXTRACT16(PSHR32(innov[i],SIG_SHIFT))… in nb_decode()
|
D | sb_celp.c | 686 target[i]=SUB16(sw[i],res[i]); in sb_encode()
|
/external/libopus/src/ |
D | opus_multistream_encoder.c | 211 return max + diff_table[low] + MULT16_16_Q15(frac, SUB16(diff_table[low+1], diff_table[low])); in logSum()
|