/external/libopus/celt/mips/ |
D | vq_mipsr1.h | 54 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 55 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 63 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 64 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 116 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector_mips()
|
D | fixed_generic_mipsr1.h | 109 #undef PSHR32 110 static inline int PSHR32(int a, int shift) in PSHR32() function
|
D | mdct_mipsr1.h | 153 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/ |
D | preprocess.c | 307 …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 …]
|
D | kiss_fftr.c | 238 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()
|
D | mdf.c | 213 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.h | 72 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)
|
D | kiss_fft.c | 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() 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()
|
D | fixed_generic.h | 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) macro 57 (PSHR32(x, shift)))
|
D | filterbank.c | 96 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()
|
D | resample.c | 311 …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()
|
D | math_approx.h | 127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); in speex_rand()
|
D | arch.h | 162 #define PSHR32(a,shift) (a) macro
|
/external/libopus/celt/ |
D | quant_bands.c | 194 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()
|
D | vq.c | 55 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 56 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 64 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); in exp_rotation1() 65 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); in exp_rotation1() 135 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); in normalise_residual() 399 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1)); in renormalise_vector()
|
D | fixed_generic.h | 93 #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()
|
D | fixed_debug.h | 60 #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()
|
D | mdct.c | 208 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()
|
D | mathops.c | 80 rem = PSHR32(a,2)-MULT32_32_Q31(result, b); in frac_div32()
|
D | celt_encoder.c | 320 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()
|
D | arch.h | 228 #define PSHR32(a,shift) (a) macro
|
D | celt_lpc.c | 260 xx[i] = PSHR32(xptr[i], shift); in _celt_autocorr()
|
D | bands.c | 473 X[j] = EXTRACT16(PSHR32(MULT16_16(lgain, SUB16(l,r)), kl+1)); in stereo_merge() 474 Y[j] = EXTRACT16(PSHR32(MULT16_16(rgain, ADD16(l,r)), kr+1)); in stereo_merge() 642 X[stride*2*j+i] = EXTRACT16(PSHR32(ADD32(tmp1, tmp2), 15)); in haar1() 643 X[stride*(2*j+1)+i] = EXTRACT16(PSHR32(SUB32(tmp1, tmp2), 15)); in haar1()
|
/external/libopus/celt/arm/ |
D | fixed_arm64.h | 33 #define SIG2WORD16(x) (vqmovns_s32(PSHR32((x), SIG_SHIFT)))
|
/external/libopus/celt/x86/ |
D | celt_lpc_sse4_1.c | 83 y[i] = SATURATE16(ADD32(EXTEND32(x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir_sse4_1()
|