HomeSort by relevance Sort by last modified time
    Searched refs:PSHR32 (Results 1 - 25 of 32) sorted by null

1 2

  /external/libopus/celt/
celt_lpc.c 121 _y[i] = SATURATE16(PSHR32(sum, SIG_SHIFT));
128 _y[i ] = SATURATE16(ADD32(EXTEND32(_x[i ]), PSHR32(sum[0], SIG_SHIFT)));
129 _y[i+1] = SATURATE16(ADD32(EXTEND32(_x[i+1]), PSHR32(sum[1], SIG_SHIFT)));
130 _y[i+2] = SATURATE16(ADD32(EXTEND32(_x[i+2]), PSHR32(sum[2], SIG_SHIFT)));
131 _y[i+3] = SATURATE16(ADD32(EXTEND32(_x[i+3]), PSHR32(sum[3], SIG_SHIFT)));
138 _y[i] = SATURATE16(ADD32(EXTEND32(_x[i]), PSHR32(sum, SIG_SHIFT)));
273 xx[i] = PSHR32(xptr[i], shift);
quant_bands.c 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c];
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT);
250 tmp = PSHR32(MULT16_16(coef,oldE),8) + prev[c] + SHL32(q,7);
254 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7);
255 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8));
482 tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7);
486 oldEBands[i+c*m->nbEBands] = PSHR32(tmp, 7);
487 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8));
fixed_generic.h 77 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift))
90 #define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a))))
mathops.c 79 rem = PSHR32(a,2)-MULT32_32_Q31(result, b);
fixed_debug.h 60 #define PSHR(a,b) PSHR32(a,b)
226 #define PSHR32(a,shift) (celt_mips--,SHR32(ADD32((a),(((opus_val32)(1)<<((shift))>>1))),shift))
229 #define ROUND16(x,a) (celt_mips--,EXTRACT16(PSHR32((x),(a))))
vq.c 130 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1));
371 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1));
arch.h 160 #define PSHR32(a,shift) (a)
  /external/speex/libspeex/
filters.c 103 yi = EXTRACT16(SATURATE(PSHR32(vout,14),32767));
128 scale = PSHR32(scale, SIG_SHIFT);
136 scale = PSHR32(scale, SIG_SHIFT-5);
140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8);
144 scale = PSHR32(scale, SIG_SHIFT-7);
150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6);
217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT));
326 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767));
346 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767));
367 yi = EXTRACT16(SATURATE(ADD32(EXTEND32(x[i]),PSHR32(mem[0],LPC_SHIFT)),32767))
    [all...]
stereo.c 240 stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15)), e_left, QCONST16(0.02, 15)), 15));
241 stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15)), e_right, QCONST16(0.02, 15)), 15));
267 stereo->smooth_left = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_left, QCONST16(0.98, 15)), e_left, QCONST16(0.02, 15)), 15));
268 stereo->smooth_right = EXTRACT16(PSHR32(MAC16_16(MULT16_16(stereo->smooth_right, QCONST16(0.98, 15)), e_right, QCONST16(0.02, 15)), 15));
kiss_fftr.c 225 /*f1k.r = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1);
226 f1k.i = PSHR32(SUB32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1);
227 f2k.r = PSHR32(SUB32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1);
238 f2k.i = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1);
247 freqdata[2*k-1] = PSHR32(f1kr + twr, 15);
248 freqdata[2*k] = PSHR32(f1ki + twi, 15);
249 freqdata[2*(ncfft-k)-1] = PSHR32(f1kr - twr, 15);
250 freqdata[2*(ncfft-k)] = PSHR32(twi - f1ki, 15);
preprocess.c 311 return SHL32(DIV32_16(PSHR32(MULT16_16(Q15_ONE-frac,table[ind]) + MULT16_16(frac,table[ind+1]),7),(spx_sqrt(SHL32(xx,15)+6711))),7);
334 spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[i]),
335 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15)));
344 spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo[i],
345 (1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]) )),15)));
391 gain_floor[i] = FRAC_SCALING*sqrt(noise_floor*PSHR32(noise[i],NOISE_SHIFT) + echo_floor*echo[i])/sqrt(1+PSHR32(noise[i],NOISE_SHIFT) + echo[i]);
659 st->ps[i] = PSHR32(st->ps[i], 2*st->frame_shift);
781 if (!st->update_prob[i] || st->ps[i] < PSHR32(st->noise[i], NOISE_SHIFT))
797 spx_word32_t tot_noise = ADD32(ADD32(ADD32(EXTEND32(1), PSHR32(st->noise[i],NOISE_SHIFT)) , st->echo_noise[i]) , st->reverb_estimate[i])
    [all...]
lpc.c 97 r = DIV32_16(rr+PSHR32(error,1),ADD16(error,8));
_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)
filterbank.c 96 val = DIV32_16(mel - id1*mel_interval,EXTRACT16(PSHR32(mel_interval,15)));
167 ps[i] = EXTRACT16(PSHR32(tmp,15));
fixed_generic.h 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift))
57 (PSHR32(x, shift)))
lsp.c 273 *px = PSHR32(*px,2);
274 *qx = PSHR32(*qx,2);
279 P[m] = PSHR32(P[m],3);
280 Q[m] = PSHR32(Q[m],3);
506 a = PSHR32(xp[m][j+2] + xout1 + xq[m][j+2] - xout2, shift);
mdf.c 213 out[i] = SATURATE32(PSHR32(MULT16_32_Q15(radius,vout),15),32767);
267 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT);
276 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT);
277 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT);
284 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT);
294 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT);
303 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT);
304 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT);
311 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT);
846 st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16))
    [all...]
kiss_fft.c 57 Fout2->r = PSHR32(SUB32(SHL32(EXTEND32(Fout->r), 14), tr), 15);
58 Fout2->i = PSHR32(SUB32(SHL32(EXTEND32(Fout->i), 14), ti), 15);
59 Fout->r = PSHR32(ADD32(SHL32(EXTEND32(Fout->r), 14), tr), 15);
60 Fout->i = PSHR32(ADD32(SHL32(EXTEND32(Fout->i), 14), ti), 15);
nb_celp.c 754 target[i]=EXTRACT16(SATURATE(SUB32(sw[i],PSHR32(ringing[i],1)),32767));
802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1)));
809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT));
816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,SIG_SHIFT));
853 exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767));
872 exc[i] = EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767));
    [all...]
cb_search.c 94 t[n] = SUB16(t[n],PSHR32(MULT16_16(g,r[n]),13));
233 r2[j] = EXTRACT16(PSHR32(e[j] ,6));
506 r2[j] = EXTRACT16(PSHR32(e[j] ,6));
arch.h 170 #define PSHR32(a,shift) (a)
math_approx.h 127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14));
resample.c 310 interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15);
312 interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_16(QCONST16(0.16667f, 15),x3),15);
417 out[out_stride * out_sample++] = PSHR32(sum, 15);
540 out[out_stride * out_sample++] = PSHR32(sum,15);
    [all...]
ltp.c 520 new_target[i] = SUB16(new_target[i], EXTRACT16(PSHR32(tmp,6)));
750 exc[i]=PSHR32(exc32[i],13);*/
797 res[i] = EXTRACT16(PSHR32(exc[i], SIG_SHIFT-1));
834 exc[i] = EXTRACT16(PSHR32(exc_out[i],13));
  /external/libopus/src/
mlp.c 113 out[j] = tansig_approx(EXTRACT16(PSHR32(sum,17)));

Completed in 246 milliseconds

1 2