/external/libopus/celt/arm/ |
kiss_fft_armv5e.h | 61 (m).r = SHL32(SUB32(mr1__, mr2__), 1); \ 62 (m).i = SHL32(mi__, 1); \ 111 (m).r = SHL32(mr__, 1); \ 112 (m).i = SHL32(SUB32(mi1__, mi2__), 1); \
|
/external/libopus/celt/ |
mathops.c | 80 result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); 86 return SHL32(result, 2); 159 if (x>SHL32(EXTEND32(1), 16)) 160 x = SUB32(SHL32(EXTEND32(1), 17),x); 163 if (x<SHL32(EXTEND32(1), 15))
|
celt.c | 103 x4 = SHL32(x[-T-2], 1); 104 x3 = SHL32(x[-T-1], 1); 105 x2 = SHL32(x[-T], 1); 106 x1 = SHL32(x[-T+1], 1); 110 x0=SHL32(x[i-T+2],1); 115 x4=SHL32(x[i-T+3],1); 120 x3=SHL32(x[i-T+4],1); 125 x2=SHL32(x[i-T+5],1); 130 x1=SHL32(x[i-T+6],1); 140 x0=SHL32(x[i-T+2],1) [all...] |
quant_bands.c | 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; 248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); 250 tmp = PSHR32(MULT16_16(coef,oldE),8) + prev[c] + SHL32(q,7); 255 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); 289 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); 387 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT)); 479 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); 482 tmp = PSHR32(MULT16_16(coef,oldEBands[i+c*m->nbEBands]),8) + prev[c] + SHL32(q,7); 487 prev[c] = prev[c] + SHL32(q,7) - MULT16_16(beta,PSHR32(q,8)); 506 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT)) [all...] |
fixed_generic.h | 90 #define SHL32(a,shift) ((opus_int32)((opus_uint32)(a)<<(shift))) 95 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) 99 #define SHL(a,shift) SHL32(a,shift)
|
celt_lpc.c | 61 r = -frac_div32(SHL32(rr,3), error); 119 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT); 294 ac[0] += SHL32((opus_int32)1, -shift); 299 ac[i] = SHL32(ac[i], shift2);
|
mathops.h | 244 arg = celt_div(SHL32(EXTEND32(y),15),x); 250 arg = celt_div(SHL32(EXTEND32(x),15),y);
|
bands.c | 120 sum = MAC16_16(sum, EXTRACT16(SHL32(X[j+c*N],-shift)), 121 EXTRACT16(SHL32(X[j+c*N],-shift))); 148 g = EXTRACT16(celt_rcp(SHL32(E,3))); 253 *f++ = SHL32(MULT16_16(*x++, g), -shift); 294 t = SHL32(t, (7-shift)<<1); 376 a1 = DIV32_16(SHL32(EXTEND32(left),14),norm); 377 a2 = DIV32_16(SHL32(EXTEND32(right),14),norm); [all...] |
arch.h | 194 #define SHL32(a,shift) (a)
|
/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)
|
/external/libopus/src/ |
mlp.c | 107 opus_val32 sum = SHL32(EXTEND32(*W++),8); 115 opus_val32 sum = SHL32(EXTEND32(*W++),14);
|
/external/libopus/celt/x86/ |
celt_lpc_sse.c | 94 opus_val32 sum = SHL32(EXTEND32(_x[i]), SIG_SHIFT);
|