Home
last modified time | relevance | path

Searched refs:SUB16 (Results 1 – 25 of 46) sorted by relevance

12

/external/qemu/target-arm/
Dop_addsub.h52 SUB16(a, b, 0); in HELPER()
53 SUB16(a >> 16, b >> 16, 1); in HELPER()
77 SUB16(a >> 16, b, 1); in HELPER()
87 SUB16(a, b >> 16, 0); in HELPER()
101 #undef SUB16
/external/chromium_org/third_party/opus/src/celt/
Dmathops.c108 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()
Dquant_bands.c149 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()
Dvq.c82 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()
Dfixed_generic.h98 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) macro
Darch.h174 #define SUB16(a,b) ((a)-(b)) macro
/external/libopus/celt/
Dmathops.c108 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()
Dquant_bands.c149 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()
Dvq.c82 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()
Dfixed_generic.h98 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) macro
Darch.h174 #define SUB16(a,b) ((a)-(b)) macro
/external/speex/libspeex/
Dmath_approx.h170 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()
Dquant_lsp.c111 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()
Dquant_lsp_bfin.h91 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()
Dcb_search.c94 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()
Dlsp.c166 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()
Dlpc.c112 error = SUB16(error,MULT16_16_Q13(r,MULT16_16_Q13(error,r))); in _spx_lpc()
Dmdf.c716 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()
Dpreprocess.c283 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()
/external/chromium_org/third_party/speex/libspeex/
Dmath_approx.h170 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()
Dquant_lsp.c111 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()
Dcb_search.c94 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()
Dlsp.c166 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()
Dlpc.c112 error = SUB16(error,MULT16_16_Q13(r,MULT16_16_Q13(error,r))); in _spx_lpc()
Darch.h181 #define SUB16(a,b) ((a)-(b)) macro

12