/external/speex/libspeex/ |
math_approx.h | 174 ret = spx_sqrt(SHL32(EXTEND32(sq),13)); 219 if (x>SHL32(EXTEND32(1), 16)) 220 x = SUB32(SHL32(EXTEND32(1), 17),x); 223 if (x<SHL32(EXTEND32(1), 15)) 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14)));
|
filters_bfin.h | 453 spx_word32_t yi = SHL32(EXTEND32(y[i]),LPC_SHIFT); 461 yi2 = ADD32(yi2,SHL32(yi,1)); 489 _y[i] = ADD32(_x[i],SHL32(yi,1)); 500 _y[i] = ADD32(_x[i],SHL32(yi,1));
|
fixed_generic.h | 48 #define SHL32(a,shift) ((a) << (shift)) 51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) 55 #define SATURATE32PSHR(x,shift,a) (((x)>=(SHL32(a,shift))) ? (a) : \ 56 (x)<=-(SHL32(a,shift)) ? -(a) : \
|
preprocess.c | 117 a = SHL32(a,8); 143 a = SHL32(a,15)-a; 281 tmp = SQR16_Q15(QCONST16(.5f,15)-MULT16_16_P15(QCONST16(.5f,15),spx_cos_norm(SHL32(EXTEND32(x),2)))); 284 w[i]=spx_sqrt(SHL32(EXTEND32(tmp),15)); 310 frac = SHL32(xx-SHL32(ind,10),5); 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); 317 return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,x)))); 334 spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[i]) [all...] |
filters.c | 104 mem[0] = ADD32(MAC16_16(mem[1], num[1],x[i]), SHL32(MULT16_32_Q15(-den[1],vout),1)); 105 mem[1] = ADD32(MULT16_16(num[2],x[i]), SHL32(MULT16_32_Q15(-den[2],vout),1)); 118 y[i] = SHL32(MULT16_32_Q14(EXTRACT16(SHR32(x[i],7)),scale),7); 125 if (scale > SHL32(EXTEND32(SIG_SCALING), 8)) 129 scale_1 = EXTRACT16(PDIV32_16(SHL32(EXTEND32(SIG_SCALING),7),scale)); 137 scale_1 = DIV32_16(SHL32(EXTEND32(SIG_SCALING),3),scale); 147 scale_1 = DIV32_16(SHL32(EXTEND32(SIG_SCALING),3),scale); 217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); 427 y[i] = PSHR32(ADD32(SHL32(EXTEND32(y1),LPC_SHIFT+1),mem2[0]),LPC_SHIFT); 646 tmp = SHL32(exc[i-(pitch-maxj+3)],15) [all...] |
cb_search.c | 188 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); 191 e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); 486 e[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5); 489 e[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[rind*subvect_size+j]),SIG_SHIFT-5)); 560 exc[subvect_size*i+j]=SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5); 563 exc[subvect_size*i+j]=NEG32(SHL32(EXTEND32(shape_cb[ind[i]*subvect_size+j]),SIG_SHIFT-5)); 594 exc[i]+=SHL32(EXTEND32(tmp[i]),8); 611 exc[i]=SHL32(EXTEND32(speex_rand(1, seed)),SIG_SHIFT);
|
pseudofloat.h | 274 if (ABS32(a)>=SHL32(EXTEND32(b.m-1),15)) 302 if (ABS32(a)>=SHL32(EXTEND32(b-1),15)) 341 m = SHL32(EXTEND32(a.m), 14);
|
lpc.c | 93 spx_word32_t rr = NEG32(SHL32(EXTEND32(ac[i + 1]),13));
|
ltp.c | 298 g = DIV32(SHL32(EXTEND32(corr16[i-start]),cshift), 10+SHR32(MULT16_16(spx_sqrt(e0),spx_sqrt(SHL32(EXTEND32(ener16[i-start]),eshift))),6)); 468 C[0] = SHL32(C[0],1); 469 C[1] = SHL32(C[1],1); 470 C[2] = SHL32(C[2],1); 471 C[3] = SHL32(C[3],1); 472 C[4] = SHL32(C[4],1); 473 C[5] = SHL32(C[5],1); 716 spx_word16_t fact = DIV32_16(SHL32(EXTEND32(tmp),14),gain_sum);
|
mdf.c | 206 spx_word32_t vout = mem[0] + SHL32(EXTEND32(vin),15); 208 mem[0] = mem[1] + SHL32(SHL32(-EXTEND32(vin),15) + MULT16_32_Q15(radius,vout),1); 212 mem[1] = SHL32(EXTEND32(vin),15) - MULT16_32_Q15(den2,vout); 434 st->spec_average = DIV32_16(SHL32(EXTEND32(st->frame_size), 15), st->sampling_rate); 436 st->beta0 = DIV32_16(SHL32(EXTEND32(st->frame_size), 16), st->sampling_rate); 437 st->beta_max = DIV32_16(SHL32(EXTEND32(st->frame_size), 14), st->sampling_rate); 859 st->W[chan*N*K*M + j*N*K + speak*N + i] -= SHL32(EXTEND32(st->wtmp2[i]),16+NORMALIZE_SCALEDOWN-NORMALIZE_SCALEUP-1); 949 st->W[i] = SHL32(EXTEND32(st->foreground[i]),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); 486 kf_cexp2(st->twiddles+i, DIV32(SHL32(phase,17),nfft));
|
kiss_fftr.c | 67 kf_cexp2(st->super_twiddles+i, DIV32(SHL32(phase,16),nfft)); 240 f1kr = SHL32(ADD32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),13); 241 f1ki = SHL32(SUB32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),13);
|
sb_celp.c | 590 filter_ratio=EXTRACT16(SATURATE(PDIV32(SHL32(ADD32(rl,82),7),ADD32(82,rh)),32767)); 661 scale = SHL32(MULT16_16(PDIV32_16(SHL32(EXTEND32(gc),SIG_SHIFT-6),filter_ratio),(1+el)),6); 1020 filter_ratio=EXTRACT16(SATURATE(PDIV32(SHL32(ADD32(rl,82),7),ADD32(82,rh)),32767)); 1038 exc[i]=SHL32(MULT16_32_P15(MULT16_16_Q15(mode->folding_gain,low_innov_alias[offset+i]),SHL32(g,6)),SIG_SHIFT) [all...] |
arch.h | 168 #define SHL32(a,shift) (a)
|
filterbank.c | 62 df = DIV32(SHL32(sampling,15),MULT16_16(2,len));
|
nb_celp.c | 407 spx_sqrt(QCONST32(1.,28)-MULT16_32_Q15(QCONST16(.8,15),SHL32(MULT16_16(ol_pitch_coef,ol_pitch_coef),16))))); 409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT); 727 mem[i]=SHL32(st->mem_sp[i],1); 733 mem[i]=SHL32(st->mem_sw[i],1); 739 mem[i]=SHL32(st->mem_sw[i],1); 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),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...] |
fixed_debug.h | 147 static inline int SHL32(long long a, int shift) 152 fprintf (stderr, "SHL32: inputs are not int: %d %d\n", (int)a, shift); 157 fprintf (stderr, "SHL32: output is not int: %d\n", (int)res); 165 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
|
lsp.c | 461 xin = SHL32(EXTEND32(1), (QIMP-1)); /* 0.5 in QIMP format */ 617 spx_word16_t tmp = DIV32_16(SHL32(EXTEND32(1 + subframe),14),nb_subframes);
|
resample.c | 452 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); 515 const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_rate); [all...] |