Home
last modified time | relevance | path

Searched refs:PSHR32 (Results 1 – 25 of 30) sorted by relevance

12

/external/libopus/celt/mips/
Dvq_mipsr1.h52 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
53 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
61 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
62 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
110 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
Dfixed_generic_mipsr1.h109 #undef PSHR32
110 static inline int PSHR32(int a, int shift) in PSHR32() function
Dmdct_mipsr1.h153 yc.r = PSHR32(MULT16_32_Q16(scale, yc.r), scale_shift); in clt_mdct_forward()
154 yc.i = PSHR32(MULT16_32_Q16(scale, yc.i), scale_shift); in clt_mdct_forward()
/external/speex/libspeexdsp/
Dpreprocess.c307 …return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),… in hypergeom_gain()
330 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor()
331 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15))); in compute_gain_floor()
340 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo… in compute_gain_floor()
341 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15))); in compute_gain_floor()
387 …in_floor[i] = FRAC_SCALING*sqrt(noise_floor*PSHR32(noise[i],NOISE_SHIFT) + echo_floor*echo[i])/sqr… in compute_gain_floor()
655 st->ps[i] = PSHR32(st->ps[i], 2*st->frame_shift); in preprocess_analysis()
777 if (!st->update_prob[i] || st->ps[i] < PSHR32(st->noise[i], NOISE_SHIFT)) in speex_preprocess_run()
793 …spx_word32_t tot_noise = ADD32(ADD32(ADD32(EXTEND32(1), PSHR32(st->noise[i],NOISE_SHIFT)) , st->ec… in speex_preprocess_run()
803 …st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gam… in speex_preprocess_run()
[all …]
Dkiss_fftr.c238 f2k.i = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); in kiss_fftr2()
247 freqdata[2*k-1] = PSHR32(f1kr + twr, 15); in kiss_fftr2()
248 freqdata[2*k] = PSHR32(f1ki + twi, 15); in kiss_fftr2()
249 freqdata[2*(ncfft-k)-1] = PSHR32(f1kr - twr, 15); in kiss_fftr2()
250 freqdata[2*(ncfft-k)] = PSHR32(twi - f1ki, 15); in kiss_fftr2()
Dmdf.c213 out[i] = SATURATE32(PSHR32(MULT16_32_Q15(radius,vout),15),32767); in filter_dc_notch16()
267 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum()
276 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum()
277 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT); in spectral_mul_accum()
284 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum()
294 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16()
303 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16()
304 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT); in spectral_mul_accum16()
311 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT); in spectral_mul_accum16()
846 … st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16)); in speex_echo_cancellation()
[all …]
D_kiss_fft_guts.h72 do{ (m).r = PSHR32( smul((a).r,(b).r) - smul((a).i,(b).i),17 ); \
73 (m).i = PSHR32( smul((a).r,(b).i) + smul((a).i,(b).r),17 ); }while(0)
Dfixed_generic.h50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro
57 (PSHR32(x, shift)))
Dkiss_fft.c57 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()
59 Fout->r = PSHR32(ADD32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2()
60 Fout->i = PSHR32(ADD32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2()
Dfilterbank.c96 val = DIV32_16(mel - id1*mel_interval,EXTRACT16(PSHR32(mel_interval,15))); in filterbank_new()
167 ps[i] = EXTRACT16(PSHR32(tmp,15)); in filterbank_compute_psd16()
Darch.h162 #define PSHR32(a,shift) (a) macro
Dmath_approx.h127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand()
Dresample.c311 …interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef()
313 …interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_… in cubic_coef()
424 out[out_stride * out_sample++] = PSHR32(sum, 15); in resampler_basic_direct_double()
547 out[out_stride * out_sample++] = PSHR32(sum,15); in resampler_basic_interpolate_double()
/external/libopus/celt/
Dfixed_generic.h93 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro
106 #define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a))))
108 #define SROUND16(x,a) EXTRACT16(SATURATE(PSHR32(x,a), 32767));
171 x = PSHR32(x, SIG_SHIFT); in SIG2WORD16_generic()
Dvq.c59 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
60 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
68 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1()
69 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1()
139 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); in normalise_residual()
403 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
Dquant_bands.c194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; in quant_coarse_energy_impl()
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl()
250 tmp = PSHR32(MULT16_16(coef,oldE),8) + prev[c] + SHL32(q,7); in quant_coarse_energy_impl()
254 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); in quant_coarse_energy_impl()
255 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in quant_coarse_energy_impl()
483 tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7); in unquant_coarse_energy()
487 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7); in unquant_coarse_energy()
488 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); in unquant_coarse_energy()
Dfixed_debug.h60 #define PSHR(a,b) PSHR32(a,b)
234 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift)) macro
237 #define ROUND16(x,a) (celt_mips--,EXTRACT16(PSHR32((x),(a))))
238 #define SROUND16(x,a) (celt_mips--,EXTRACT16(SATURATE(PSHR32(x,a), 32767)));
780 x = PSHR32(x, SIG_SHIFT); in SIG2WORD16_generic()
Dmdct.c208 yc.r = PSHR32(MULT16_32_Q16(scale, yc.r), scale_shift); in clt_mdct_forward_c()
209 yc.i = PSHR32(MULT16_32_Q16(scale, yc.i), scale_shift); in clt_mdct_forward_c()
Dmathops.c80 rem = PSHR32(a,2)-MULT32_32_Q31(result, b); in frac_div32()
Dcelt_encoder.c320 opus_val16 x2 = PSHR32(MULT16_16(tmp[2*i],tmp[2*i]) + MULT16_16(tmp[2*i+1],tmp[2*i+1]),16); in transient_analysis()
324 tmp[i] = mem0 + PSHR32(x2-mem0,forward_shift); in transient_analysis()
339 tmp[i] = mem0 + PSHR32(tmp[i]-mem0,3); in transient_analysis()
835 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
836 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
866 trim_index = PSHR32(trim, 8); in alloc_trim_analysis()
1026 int shift = -PSHR32(MAX16(-QCONST16(5.f, DB_SHIFT), MIN16(0, smr)), DB_SHIFT); in dynalloc_analysis()
1095 importance[i] = PSHR32(13*celt_exp2(MIN16(follower[i], QCONST16(4.f, DB_SHIFT))), 16); in dynalloc_analysis()
Darch.h231 #define PSHR32(a,shift) (a) macro
/external/libopus/celt/arm/
Dfixed_arm64.h33 #define SIG2WORD16(x) (vqmovns_s32(PSHR32((x), SIG_SHIFT)))
/external/libopus/celt/x86/
Dcelt_lpc_sse4_1.c83 y[i] = SATURATE16(ADD32(EXTEND32(x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir_sse4_1()
/external/rnnoise/src/
Darch.h201 #define PSHR32(a,shift) (a) macro
Dcelt_lpc.c244 xx[i] = PSHR32(xptr[i], shift); in _celt_autocorr()

12