Home
last modified time | relevance | path

Searched refs:SUB32 (Results 1 – 24 of 24) sorted by relevance

/external/speex/libspeex/
Dvq_arm4.h89 dist1=SUB32(SHR(*E++,1),dist1); in vq_nbest()
95 dist2=SUB32(SHR(*E++,1),dist2); in vq_nbest()
101 dist3=SUB32(SHR(*E++,1),dist3); in vq_nbest()
107 dist4=SUB32(SHR(*E++,1),dist4); in vq_nbest()
Dlsp.c262 *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()
487 xp[i+1][j+2] = ADD32(SUB32(xp[i][j+2], mult), xp[i][j]); in lsp_to_lpc()
489 xq[i+1][j+2] = ADD32(SUB32(xq[i][j+2], mult), xq[i][j]); in lsp_to_lpc()
495 xp[i+1][j+2] = SUB32(xp[i][j], mult); in lsp_to_lpc()
497 xq[i+1][j+2] = SUB32(xq[i][j], mult); in lsp_to_lpc()
Dmath_approx.h127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand()
199 …return SUB32(-K1, MULT16_16_P13(x2, ADD32(K2, MULT16_16_P13(x2, ADD32(K3, MULT16_16_P13(K4, x2))))… in spx_cos()
220 x = SUB32(SHL32(EXTEND32(1), 17),x); in spx_cos_norm()
Dltp.c162 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[0],g[1]),C[3])); in compute_pitch_error()
163 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[2],g[1]),C[4])); in compute_pitch_error()
164 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[2],g[0]),C[5])); in compute_pitch_error()
165 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[0],g[0]),C[6])); in compute_pitch_error()
166 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[1],g[1]),C[7])); in compute_pitch_error()
167 sum = SUB32(sum,MULT16_16(MULT16_16_16(g[2],g[2]),C[8])); in compute_pitch_error()
235 …energy[i-start+1] = SUB32(ADD32(energy[i-start],SHR32(MULT16_16(sw[-i-1],sw[-i-1]),6)), SHR32(MULT… in open_loop_nbest_pitch()
800 target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700)); in forced_pitch_quant()
Dmdf.c273 … tmp1 = SUB32(MAC16_16(tmp1, X[j*N+i],TOP16(Y[j*N+i])), MULT16_16(X[j*N+i+1],TOP16(Y[j*N+i+1]))); in spectral_mul_accum()
300 tmp1 = SUB32(MAC16_16(tmp1, X[j*N+i],Y[j*N+i]), MULT16_16(X[j*N+i+1],Y[j*N+i+1])); in spectral_mul_accum16()
732 …tmp32 = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(MULT16_16_P15(st->preemph, st->… in speex_echo_cancellation()
758 …tmp32 = SUB32(EXTEND32(far_end[i*K+speak]), EXTEND32(MULT16_16_P15(st->preemph, st->memX[speak]))); in speex_echo_cancellation()
902 …= ADD32(MULT16_32_Q15(QCONST16(.6f,15),st->Davg1), MULT16_32_Q15(QCONST16(.4f,15),SUB32(Sff,See))); in speex_echo_cancellation()
903 …ADD32(MULT16_32_Q15(QCONST16(.85f,15),st->Davg2), MULT16_32_Q15(QCONST16(.15f,15),SUB32(Sff,See))); in speex_echo_cancellation()
917 if (FLOAT_GT(FLOAT_MUL32U(SUB32(Sff,See),ABS32(SUB32(Sff,See))), FLOAT_MUL32U(Sff,Dbf))) in speex_echo_cancellation()
939 …if (FLOAT_GT(FLOAT_MUL32U(NEG32(SUB32(Sff,See)),ABS32(SUB32(Sff,See))), FLOAT_MULT(VAR_BACKTRACK,F… in speex_echo_cancellation()
973 …tmp_out = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(st->e[chan*N+i+st->frame_size… in speex_echo_cancellation()
975 …tmp_out = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(st->y[chan*N+i+st->frame_size… in speex_echo_cancellation()
Dkiss_fftr.c237 f2k.r = SHR32(SUB32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1); in kiss_fftr2()
241 f1ki = SHL32(SUB32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),13); in kiss_fftr2()
243 …twr = SHR32(SUB32(MULT16_16(f2k.r,st->super_twiddles[k].r),MULT16_16(f2k.i,st->super_twiddles[k].i… in kiss_fftr2()
Dvq.c86 dist=SUB32(SHR32(E[i],1),dist); in vq_nbest()
Dkiss_fft.c54 tr = SHR32(SUB32(MULT16_16(Fout2->r , tw1->r),MULT16_16(Fout2->i , tw1->i)), 1); in kf_bfly2()
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()
Dlpc.c95 rr = SUB32(rr,MULT16_16(lpc[j],ac[i - j])); in _spx_lpc()
Darch.h184 #define SUB32(a,b) ((a)-(b)) macro
Dfixed_generic.h68 #define SUB32(a,b) ((spx_word32_t)(a)-(spx_word32_t)(b)) macro
Dnb_celp.c681 pi_g = ADD32(pi_g, SUB32(EXTEND32(interp_qlpc[i+1]),EXTEND32(interp_qlpc[i]))); in nb_encode()
754 target[i]=EXTRACT16(SATURATE(SUB32(sw[i],PSHR32(ringing[i],1)),32767)); in nb_encode()
802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); in nb_encode()
1528 pi_g = ADD32(pi_g, SUB32(EXTEND32(ak[i+1]),EXTEND32(ak[i]))); in nb_decode()
Dfixed_debug.h222 static inline int SUB32(long long a, long long b) in SUB32() function
Dfilters.c466 y2k=SUB32(y2k,MULT16_16(a[j],SUB16(x[i+j],x2[i-j]))); in qmf_decomp()
Dresample.c311 interp[1] = EXTRACT16(EXTEND32(x) + SHR32(SUB32(EXTEND32(x2),EXTEND32(x3)),1)); in cubic_coef()
/external/libopus/celt/
D_kiss_fft_guts.h61 do{ (m).r = SUB32(S_MUL((a).r,(b).r) , S_MUL((a).i,(b).i)); \
66 (m).i = SUB32(S_MUL((a).i,(b).r) , S_MUL((a).r,(b).i)); }while(0)
69 do{ (m).r = SHR32(SUB32(S_MUL((a).r,(b).r) , S_MUL((a).i,(b).i)),2); \
87 do {(res).r=SUB32((a).r,(b).r); (res).i=SUB32((a).i,(b).i); \
94 do {(res).r = ADD32((res).r,(a).r); (res).i = SUB32((res).i,(a).i); \
Dmathops.c160 x = SUB32(SHL32(EXTEND32(1), 17),x); in celt_cos_norm()
Dfixed_generic.h102 #define SUB32(a,b) ((opus_val32)(a)-(opus_val32)(b)) macro
Darch.h176 #define SUB32(a,b) ((a)-(b)) macro
Dquant_bands.c198 SUB32((opus_val32)oldEBands[i+c*m->nbEBands],max_decay))); in quant_coarse_energy_impl()
Dfixed_debug.h305 #define SUB32(a, b) SUB32_(a, b, __FILE__, __LINE__) macro
Dcelt_encoder.c875 S = SUB32(L, R); in stereo_analysis()
/external/libopus/celt/arm/
Dkiss_fft_armv5e.h61 (m).r = SHL32(SUB32(mr1__, mr2__), 1); \
86 (m).r = SHR32(SUB32(mr1__, mr2__), 1); \
112 (m).i = SHL32(SUB32(mi1__, mi2__), 1); \
/external/libopus/src/
Dopus_multistream_encoder.c197 diff = SUB32(EXTEND32(a),EXTEND32(b)); in logSum()
200 diff = SUB32(EXTEND32(b),EXTEND32(a)); in logSum()