/external/libopus/celt/ |
D | pitch.c | 69 Syy = ADD32(Syy, SHR32(MULT16_16(y[j],y[j]), yshift)); in find_best_pitch() 100 Syy += SHR32(MULT16_16(y[i+len],y[i+len]),yshift) - SHR32(MULT16_16(y[i],y[i]),yshift); in find_best_pitch() 166 x_lp[i] = SHR32(HALF32(HALF32(x[0][(2*i-1)]+x[0][(2*i+1)])+x[0][2*i]), shift); in pitch_downsample() 167 x_lp[0] = SHR32(HALF32(HALF32(x[0][1])+x[0][0]), shift); in pitch_downsample() 171 x_lp[i] += SHR32(HALF32(HALF32(x[1][(2*i-1)]+x[1][(2*i+1)])+x[1][2*i]), shift); in pitch_downsample() 172 x_lp[0] += SHR32(HALF32(HALF32(x[1][1])+x[1][0]), shift); in pitch_downsample() 180 ac[0] += SHR32(ac[0],13); in pitch_downsample() 359 sum += SHR32(MULT16_16(x_lp[j],y[i+j]), shift); in pitch_search() 407 x2y2 = SHR32(MULT16_16(VSHR32(xx, sx), VSHR32(yy, sy)), 14); in compute_pitch_gain() 519 pg = SHR32(frac_div32(best_xy,best_yy+1),16); in remove_doubling()
|
D | celt_lpc.c | 60 rr += SHR32(ac[i + 1],3); in _celt_lpc() 63 lpc[i] = SHR32(r,3); in _celt_lpc() 76 if (error<SHR32(ac[0],10)) in _celt_lpc() 248 if (n&1) ac0 += SHR32(MULT16_16(xptr[0],xptr[0]),9); in _celt_autocorr() 251 ac0 += SHR32(MULT16_16(xptr[i],xptr[i]),9); in _celt_autocorr() 252 ac0 += SHR32(MULT16_16(xptr[i+1],xptr[i+1]),9); in _celt_autocorr() 289 ac[i] = SHR32(ac[i], shift2); in _celt_autocorr()
|
D | fixed_debug.h | 45 …DD32(SHL32(MULT16_16(SHR32((a),16),SHR((b),16)),1), SHR32(MULT16_16SU(SHR32((a),16),((b)&0x0000fff… 48 #define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR32((b),16)), SHR32(MULT16_16SU((a),((b)&0x0000fff… 59 #define SHR(a,b) SHR32(a,b) 190 static OPUS_INLINE int SHR32(opus_int64 a, int shift) in SHR32() function 234 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift)) 235 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) 241 #define HALF32(x) (SHR32(x,1))
|
D | fixed_generic.h | 88 #define SHR32(a,shift) ((a) >> (shift)) macro 93 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 95 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) 112 #define HALF32(x) (SHR32(x,1))
|
D | celt_decoder.c | 638 ac[0] += SHR32(ac[0],13); in celt_decode_lost() 695 E1 += SHR32(MULT16_16(e, e), shift); in celt_decode_lost() 697 E2 += SHR32(MULT16_16(e, e), shift); in celt_decode_lost() 700 decay = celt_sqrt(frac_div32(SHR32(E1, 1), E2)); in celt_decode_lost() 732 S1 += SHR32(MULT16_16(tmp, tmp), 10); in celt_decode_lost() 759 S2 += SHR32(MULT16_16(tmp, tmp), 10); in celt_decode_lost() 763 if (!(S1 > SHR32(S2,2))) in celt_decode_lost() 774 opus_val16 ratio = celt_sqrt(frac_div32(SHR32(S1,1)+1,S2+1)); in celt_decode_lost()
|
D | celt_encoder.c | 285 x = SHR32(in[i+c*len],SIG_SHIFT); in transient_analysis() 289 mem1 = x - SHR32(y,1); in transient_analysis() 361 norm = SHL32(EXTEND32(len2),6+14)/ADD32(EPSILON,SHR32(mean,1)); in transient_analysis() 516 m = SHR32(MULT16_16(coef0, x), 15-SIG_SHIFT); in celt_preemphasis() 563 m = SHR32(MULT16_16(coef0, x), 15-SIG_SHIFT); in celt_preemphasis() 815 sum = ADD16(sum, EXTRACT16(SHR32(partial, 18))); in alloc_trim_analysis() 825 minXC = MIN16(minXC, ABS16(EXTRACT16(SHR32(partial, 18)))); in alloc_trim_analysis() 852 …trim -= MAX32(-QCONST16(2.f, 8), MIN32(QCONST16(2.f, 8), SHR32(diff+QCONST16(1.f, DB_SHIFT),DB_SHI… in alloc_trim_analysis() 1133 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); in dynalloc_analysis() 1136 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); in dynalloc_analysis() [all …]
|
D | bands.c | 116 sum = MAC16_16(sum, EXTRACT16(SHR32(X[j+c*N],shift)), in compute_band_energies() 117 EXTRACT16(SHR32(X[j+c*N],shift))); in compute_band_energies() 260 *f++ = SHR32(MULT16_16(*x++, g), shift); in denormalise_bands() 289 thresh32 = SHR32(celt_exp2(-SHL16(depth, 10-BITRES)),1); in anti_collapse() 324 opus_val32 r32 = SHR32(celt_exp2(-EXTRACT16(Ediff)),1); in anti_collapse() 332 r = SHR32(MULT16_16_Q15(sqrt_1, r),shift); in anti_collapse() 408 X[j] = EXTRACT16(SHR32(MAC16_16(MULT16_16(a1, l), a2, r), 14)); in intensity_stereo() 421 X[j] = EXTRACT16(SHR32(ADD32(l, r), 15)); in stereo_split() 422 Y[j] = EXTRACT16(SHR32(SUB32(r, l), 15)); in stereo_split()
|
D | quant_bands.c | 153 return MIN32(200,SHR32(dist,2*DB_SHIFT-6)); in loss_distortion() 387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy() 507 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
|
D | vq.c | 270 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[0])),rshift)); in op_pvq_search_c() 282 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); in op_pvq_search_c()
|
D | kiss_fft.c | 585 fout[st->bitrev[i]].r = SHR32(MULT16_32_Q16(scale, x.r), scale_shift); in opus_fft_c() 586 fout[st->bitrev[i]].i = SHR32(MULT16_32_Q16(scale, x.i), scale_shift); in opus_fft_c()
|
D | arch.h | 226 #define SHR32(a,shift) (a) macro
|
/external/speex/libspeexdsp/ |
D | preprocess.c | 94 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(b,8); in DIV32_16_Q15() [all …]
|
D | fixed_debug.h | 132 static inline int SHR32(long long a, int shift) in SHR32() function 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))))
|
D | math_approx.h | 126 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()
|
D | fixed_generic.h | 47 #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)))
|
D | mdf.c | 228 sum = ADD32(sum,SHR32(part,6)); in mdf_inner_prod() 363 … 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() 488 spx_word16_t decay = SHR32(spx_exp(NEG16(DIV32_16(QCONST16(2.4,11),M))),1); in speex_echo_state_init_mc() 1030 } else if (SHR32(Sff, 2) > ADD32(Sdd, SHR32(MULT16_16(N, 10000),6))) in speex_echo_cancellation() 1046 See = MAX32(See, SHR32(MULT16_16(N, 100),6)); in speex_echo_cancellation() 1107 tmp32 = ADD32(SHR32(Sxx,13), ADD32(tmp32, SHL32(tmp32,1))); in speex_echo_cancellation() 1117 if (tmp32 > SHR32(See,1)) in speex_echo_cancellation() 1118 tmp32 = SHR32(See,1); in speex_echo_cancellation() 1145 if (r>SHR32(e,1)) in speex_echo_cancellation() 1146 r = SHR32(e,1); in speex_echo_cancellation() [all …]
|
D | kiss_fftr.c | 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… 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… in kiss_fftr2()
|
D | resample.c | 312 interp[1] = EXTRACT16(EXTEND32(x) + SHR32(SUB32(EXTEND32(x2),EXTEND32(x3)),1)); in cubic_coef() 478 …p[0],SHR32(accum[0], 1)) + MULT16_32_Q15(interp[1],SHR32(accum[1], 1)) + MULT16_32_Q15(interp[2],S… in resampler_basic_interpolate_single()
|
D | kiss_fft.c | 54 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()
|
D | arch.h | 159 #define SHR32(a,shift) (a) macro
|
D | filterbank.c | 46 #define toBARK(n) (MULT16_16(26829,spx_atan(SHR32(MULT16_16(97,n),2))) + MULT16_16(4588,spx_atan(…
|
/external/libopus/celt/arm/ |
D | kiss_fft_armv5e.h | 86 (m).r = SHR32(SUB32(mr1__, mr2__), 1); \ 87 (m).i = SHR32(mi__, 1); \
|
/external/libopus/src/ |
D | opus_encoder.c | 460 g = SHR32(MAC16_16(MULT16_16(w,g2), in stereo_fade() 492 g = SHR32(MAC16_16(MULT16_16(w,g2), in gain_fade() 501 g = SHR32(MAC16_16(MULT16_16(w,g2), in gain_fade() 659 pxx = SHR32(MULT16_16(x,x),2); in compute_stereo_width() 660 pxy = SHR32(MULT16_16(x,y),2); in compute_stereo_width() 661 pyy = SHR32(MULT16_16(y,y),2); in compute_stereo_width() 664 pxx += SHR32(MULT16_16(x,x),2); in compute_stereo_width() 665 pxy += SHR32(MULT16_16(x,y),2); in compute_stereo_width() 666 pyy += SHR32(MULT16_16(y,y),2); in compute_stereo_width() 669 pxx += SHR32(MULT16_16(x,x),2); in compute_stereo_width() [all …]
|
D | opus_decoder.c | 199 out[i*channels+c] = SHR32(MAC16_16(MULT16_16(w,in2[i*channels+c]), in smooth_fade()
|
D | opus_multistream_encoder.c | 209 low = SHR32(diff, DB_SHIFT-1); in logSum()
|