/external/libopus/celt/ |
D | mathops.c | 102 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()
|
D | mathops.h | 180 …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()
|
D | vq.c | 274 Ryy = ADD16(yy, y[j]); in alg_quant() 293 yy = ADD16(yy, y[best_id]); in alg_quant() 390 m = ADD16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
|
D | fixed_generic.h | 96 #define ADD16(a,b) ((opus_val16)((opus_val16)(a)+(opus_val16)(b))) macro
|
D | arch.h | 173 #define ADD16(a,b) ((a)+(b)) macro
|
D | bands.c | 216 lg = ADD16(bandLogE[i+c*m->nbEBands], SHL16((opus_val16)eMeans[i],6)); in denormalise_bands() 440 Y[j] = EXTRACT16(PSHR32(MULT16_16(rgain, ADD16(l,r)), kr+1)); in stereo_merge() 1291 Y[0] = ADD16(tmp,Y[0]); in quant_band_stereo() 1294 Y[1] = ADD16(tmp,Y[1]); in quant_band_stereo()
|
D | fixed_debug.h | 236 #define ADD16(a, b) ADD16_(a, b, __FILE__, __LINE__) macro
|
D | celt_encoder.c | 776 sum = ADD16(sum, EXTRACT16(SHR32(partial, 18))); in alloc_trim_analysis()
|
/external/speex/libspeex/ |
D | math_approx.h | 148 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()
|
D | ltp.c | 265 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 …]
|
D | ltp_bfin.h | 260 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()
|
D | fixed_debug.h | 163 #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)))))
|
D | quant_lsp.c | 53 #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()
|
D | filters.c | 425 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()
|
D | lpc.c | 97 r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8)); in _spx_lpc()
|
D | arch.h | 181 #define ADD16(a,b) ((a)+(b)) macro
|
D | fixed_generic.h | 65 #define ADD16(a,b) ((spx_word16_t)((spx_word16_t)(a)+(spx_word16_t)(b))) macro
|
D | preprocess.c | 317 …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()
|
D | nb_celp.c | 313 …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()
|
D | lsp.c | 360 xm = ADD16(PSHR16(xl,1),PSHR16(xr,1)); /* bisect the interval */ in lpc_to_lsp()
|
D | cb_search.c | 182 t[subvect_size*i+m] = ADD16(t[subvect_size*i+m], res[m]); in split_cb_search_shape_sign_N1()
|
D | sb_celp.c | 400 …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()
|