Home
last modified time | relevance | path

Searched refs:SHR32 (Results 1 - 12 of 12) sorted by relevance

/third_party/pulseaudio/speex/libspeexdsp/
H A Dpreprocess.c94 if (SHR32(a,7) >= b) in DIV32_16_Q8()
100 a = SHR32(a,8); in DIV32_16_Q8()
101 b = SHR32(b,8); in DIV32_16_Q8()
105 a = SHR32(a,4); in DIV32_16_Q8()
106 b = SHR32(b,4); in DIV32_16_Q8()
110 a = SHR32(a,4); in DIV32_16_Q8()
111 b = SHR32(b,4); in DIV32_16_Q8()
120 if (SHR32(a,15) >= b) in DIV32_16_Q15()
126 a = SHR32(a,8); in DIV32_16_Q15()
127 b = SHR32( in DIV32_16_Q15()
[all...]
H A Dfixed_debug.h132 static inline int SHR32(long long a, int shift) in SHR32() function
137 fprintf (stderr, "SHR32: inputs are not int: %d %d\n", (int)a, shift); in SHR32()
142 fprintf (stderr, "SHR32: output is not int: %d\n", (int)res); in SHR32()
164 #define PSHR32(a,shift) (SHR32(ADD32((a),((EXTEND32(1)<<((shift))>>1))),shift))
165 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
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)))))
271 #define MAC16_16_P13(c,a,b) (EXTRACT16(ADD32((c),SHR32(ADD32(4096,MULT16_16((a),(b))),13))))
H A Dfixed_generic.h47 #define SHR32(a,shift) ((a) >> (shift)) macro
50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift))
51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
H A Dmath_approx.h126 res = MULT16_16(EXTRACT16(SHR32(*seed,16)),std); in speex_rand()
127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand()
299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14))); in spx_atan()
H A Dmdf.c222 sum = ADD32(sum,SHR32(part,6)); in mdf_inner_prod()
357 tmp += MULT16_16(EXTRACT16(SHR32(W[p*N*M + i*N+j],18)), EXTRACT16(SHR32(W[p*N*M + i*N+j],18))); in mdf_adjust_prop()
482 spx_word16_t decay = SHR32(spx_exp(NEG16(DIV32_16(QCONST16(2.4,11),M))),1); in speex_echo_state_init_mc()
1024 } else if (SHR32(Sff, 2) > ADD32(Sdd, SHR32(MULT16_16(N, 10000),6))) in speex_echo_cancellation()
1040 See = MAX32(See, SHR32(MULT16_16(N, 100),6)); in speex_echo_cancellation()
1101 tmp32 = ADD32(SHR32(Sxx,13), ADD32(tmp32, SHL32(tmp32,1))); in speex_echo_cancellation()
1111 if (tmp32 > SHR32(See,1)) in speex_echo_cancellation()
1112 tmp32 = SHR32(Se in speex_echo_cancellation()
[all...]
H A Dkiss_fftr.c228 f2k.i = SHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); in kiss_fftr2()
237 f2k.r = SHR32(SUB32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1); 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)), 1); in kiss_fftr2()
244 twi = SHR32(ADD32(MULT16_16(f2k.i,st->super_twiddles[k].r),MULT16_16(f2k.r,st->super_twiddles[k].i)), 1); in kiss_fftr2()
H A Dresample.c312 interp[1] = EXTRACT16(EXTEND32(x) + SHR32(SUB32(EXTEND32(x2),EXTEND32(x3)),1)); in cubic_coef()
478 sum = MULT16_32_Q15(interp[0],SHR32(accum[0], 1)) + MULT16_32_Q15(interp[1],SHR32(accum[1], 1)) + MULT16_32_Q15(interp[2],SHR32(accum[2], 1)) + MULT16_32_Q15(interp[3],SHR32(accum[3], 1)); in resampler_basic_interpolate_single()
H A Darch.h163 #define SHR32(a,shift) (a) macro
H A Dfilterbank.c46 #define toBARK(n) (MULT16_16(26829,spx_atan(SHR32(MULT16_16(97,n),2))) + MULT16_16(4588,spx_atan(MULT16_32_Q15(20,MULT16_16(n,n)))) + MULT16_16(3355,n))
H A Dkiss_fft.c54 tr = SHR32(SUB32(MULT16_16(Fout2->r , tw1->r),MULT16_16(Fout2->i , tw1->i)), 1); in kf_bfly2()
55 ti = SHR32(ADD32(MULT16_16(Fout2->i , tw1->r),MULT16_16(Fout2->r , tw1->i)), 1); in kf_bfly2()
/third_party/pulseaudio/speex/tmv/
H A Dmdf_tm.h785 { screwed_up = mux( SHR32(Sff, 2) > ADD32(Sdd, SHR32(MULT16_16(N, 10000),6)), screwed_up+1, 0); in mdf_check()
948 tmp32 = ADD32(SHR32(Sxx,13), ADD32(tmp32, SHL32(tmp32,1))); in mdf_compute_RER()
955 tmp = SHR32(See,1); in mdf_compute_RER()
1007 e2 = SHR32(e,1); in mdf_adapt()
1029 e2 = SHR32(e,1); in mdf_adapt()
1046 if ( Sxx > SHR32(MULT16_16(N, 1000),6) ) in mdf_adapt()
1051 tmp32q = SHR32(See,2); in mdf_adapt()
1169 See = MAX32(See, SHR32(MULT16_16(N, 100),6)); in speex_echo_cancellation()
H A Dpreprocess_tm.h799 tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+priori),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1)))); in preprocess_compute_emgain()

Completed in 16 milliseconds