Home
last modified time | relevance | path

Searched refs:ADD16 (Results 1 – 23 of 23) sorted by relevance

/external/libopus/celt/
Dmathops.c102 r = ADD16(23557, MULT16_16_Q15(n, ADD16(-13490, MULT16_16_Q15(n, 6713)))); in celt_rsqrt_norm()
108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); in celt_rsqrt_norm()
113 return ADD16(r, MULT16_16_Q15(r, MULT16_16_Q15(y, in celt_rsqrt_norm()
131 rt = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], in celt_sqrt()
132 MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, (C[4]))))))))); in celt_sqrt()
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()
192 r = ADD16(30840, MULT16_16_Q15(-15420, n)); in celt_rcp()
197 ADD16(MULT16_16_Q15(r, n), ADD16(r, -32768)))); in celt_rcp()
200 r = SUB16(r, ADD16(1, MULT16_16_Q15(r, in celt_rcp()
201 ADD16(MULT16_16_Q15(r, n), ADD16(r, -32768))))); in celt_rcp()
Dmathops.h180 …frac = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], MULT16_16_Q15(n, ADD1… in celt_log2()
199 …return ADD16(D0, MULT16_16_Q15(frac, ADD16(D1, MULT16_16_Q15(frac, ADD16(D2 , MULT16_16_Q15(D3,fra… in celt_exp2_frac()
Dvq.c274 yy = ADD16(yy, 1); in alg_quant()
281 Ryy = ADD16(yy, y[j]); in alg_quant()
300 yy = ADD16(yy, y[best_id]); in alg_quant()
389 m = ADD16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
Dfixed_generic.h112 #define ADD16(a,b) ((opus_val16)((opus_val16)(a)+(opus_val16)(b))) macro
Darch.h208 #define ADD16(a,b) ((a)+(b)) macro
Dbands.c227 lg = ADD16(bandLogE[i], SHL16((opus_val16)eMeans[i],6)); in denormalise_bands()
449 Y[j] = EXTRACT16(PSHR32(MULT16_16(rgain, ADD16(l,r)), kr+1)); in stereo_merge()
1299 Y[0] = ADD16(tmp,Y[0]); in quant_band_stereo()
1302 Y[1] = ADD16(tmp,Y[1]); in quant_band_stereo()
Dfixed_debug.h236 #define ADD16(a, b) ADD16_(a, b, __FILE__, __LINE__) macro
Dcelt_encoder.c775 sum = ADD16(sum, EXTRACT16(SHR32(partial, 18))); in alloc_trim_analysis()
/external/speex/libspeex/
Dmath_approx.h148 rt = ADD16(C0, MULT16_16_Q14(x, ADD16(C1, MULT16_16_Q14(x, ADD16(C2, MULT16_16_Q14(x, (C3))))))); in spx_sqrt()
173 sq = MULT16_16_Q13(x, ADD16(A1, MULT16_16_Q13(x, ADD16(A2, MULT16_16_Q13(x, (A3)))))); in spx_acos()
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()
260 …frac = ADD16(D0, MULT16_16_Q14(frac, ADD16(D1, MULT16_16_Q14(frac, ADD16(D2 , MULT16_16_Q14(D3,fra… in spx_exp2()
Dltp.c265 if (MULT16_16(tmp,best_ener[N-1])>MULT16_16(best_score[N-1],ADD16(1,ener16[i-start]))) in open_loop_nbest_pitch()
274 if (MULT16_16(tmp,best_ener[j])>MULT16_16(best_score[j],ADD16(1,ener16[i-start]))) in open_loop_nbest_pitch()
330 g[0]=ADD16((spx_word16_t)ptr[0],32); in pitch_gain_search_3tap_vq()
331 g[1]=ADD16((spx_word16_t)ptr[1],32); in pitch_gain_search_3tap_vq()
332 g[2]=ADD16((spx_word16_t)ptr[2],32); in pitch_gain_search_3tap_vq()
487 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4]); in pitch_gain_search_3tap()
488 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+1]); in pitch_gain_search_3tap()
489 gain[2] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+2]); in pitch_gain_search_3tap()
690 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4]); in pitch_unquant_3tap()
691 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[gain_index*4+1]); in pitch_unquant_3tap()
[all …]
Dltp_bfin.h260 if (MULT16_16(tmp,best_ener[N-1])>MULT16_16(best_score[N-1],ADD16(1,ener16[i-start]))) in open_loop_nbest_pitch()
269 if (MULT16_16(tmp,best_ener[j])>MULT16_16(best_score[j],ADD16(1,ener16[i-start]))) in open_loop_nbest_pitch()
Dfixed_debug.h163 #define PSHR16(a,shift) (SHR16(ADD16((a),((1<<((shift))>>1))),shift))
173 #define ADD16(a, b) _ADD16(a, b, __FILE__, __LINE__) macro
269 #define MAC16_16_Q11(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),11)))))
270 #define MAC16_16_Q13(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),13)))))
Dquant_lsp.c53 #define LSP_LINEAR_HIGH(i) (ADD16(MULT16_16_16(i,2560),6144))
88 quant_weight[i] = DIV32_16(81920,ADD16(300,tmp1)); in compute_quant_weights()
226 lsp[i] = ADD16(lsp[i], LSP_DIV_512(cdbk_nb_low1[id*5+i])); in lsp_unquant_nb()
Dfilters.c425 y1 = ADD16(y[i], EXTRACT16(PSHR32(mem1[0],LPC_SHIFT))); in compute_impulse_response()
465 y1k=ADD32(y1k,MULT16_16(a[j],ADD16(x[i+j],x2[i-j]))); in qmf_decomp()
468 y1k=ADD32(y1k,MULT16_16(a[j],ADD16(x[i+j],x2[i-j]))); in qmf_decomp()
747 iexc0_mag = ADD16(1,PSHR16(exc_mag,6)); in multicomb()
749 iexc1_mag = ADD16(1,PSHR16(exc_mag,6)); in multicomb()
796 …new_exc[i] = ADD16(exc[i], EXTRACT16(PSHR32(ADD32(MULT16_16(gain0,iexc[i]), MULT16_16(gain1,iexc[i… in multicomb()
Dlpc.c97 r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8)); in _spx_lpc()
Dfixed_generic.h65 #define ADD16(a,b) ((spx_word16_t)((spx_word16_t)(a)+(spx_word16_t)(b))) macro
Darch.h181 #define ADD16(a,b) ((a)+(b)) macro
Dpreprocess.c317 …return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,… in qcurve()
850 …prior_ratio = PDIV32_16(SHL32(EXTEND32(st->prior[i]), 15), ADD16(st->prior[i], SHL32(1,SNR_SHIFT))… in speex_preprocess_run()
866 st->gain2[i]=DIV32_16(SHL32(EXTEND32(32767),SNR_SHIFT), ADD16(256,tmp)); in speex_preprocess_run()
891 …prior_ratio = PDIV32_16(SHL32(EXTEND32(st->prior[i]), 15), ADD16(st->prior[i], SHL32(1,SNR_SHIFT))… in speex_preprocess_run()
Dnb_celp.c313 …autocorr[0] = ADD16(autocorr[0],MULT16_16_Q15(autocorr[0],st->lpc_floor)); /* Noise floor in auto-… in nb_encode()
1452 …exc[i]= ADD16(ADD16(MULT16_16_Q15(QCONST16(.7f,15),exc[i]) , MULT16_16_Q15(QCONST16(.3f,15),st->vo… in nb_decode()
1483 gain32 = PDIV32(ol_gain, ADD16(exc_ener,1)); in nb_decode()
1549 st->min_level = MIN16(ADD16(1,MULT16_16_Q14(QCONST16(1.01f,14), st->min_level)), st->level); in nb_decode()
Dlsp.c360 xm = ADD16(PSHR16(xl,1),PSHR16(xr,1)); /* bisect the interval */ in lpc_to_lsp()
Dcb_search.c182 t[subvect_size*i+m] = ADD16(t[subvect_size*i+m], res[m]); in split_cb_search_shape_sign_N1()
Dsb_celp.c400 …autocorr[0] = ADD16(autocorr[0],MULT16_16_Q15(autocorr[0],st->lpc_floor)); /* Noise floor in auto-… in sb_encode()
607 g=PDIV32(MULT16_16(filter_ratio,eh),EXTEND32(ADD16(1,el))); in sb_encode()
/external/swiftshader/third_party/LLVM/lib/Target/Blackfin/
DBlackfinInstrInfo.td747 def ADD16: F2<(outs D16:$dst), (ins D16:$src1, D16:$src2),