/external/chromium_org/third_party/opus/src/celt/ |
mathops.c | 157 if (x>SHL32(EXTEND32(1), 16)) 158 x = SUB32(SHL32(EXTEND32(1), 17),x); 161 if (x<SHL32(EXTEND32(1), 15)) 203 return VSHR32(EXTEND32(r),i-16);
|
fixed_generic.h | 65 #define EXTEND32(x) ((opus_val32)(x)) 77 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 84 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
|
mathops.h | 191 return VSHR32(EXTEND32(frac), -integer-2); 223 arg = celt_div(SHL32(EXTEND32(y),15),x); 229 arg = celt_div(SHL32(EXTEND32(x),15),y);
|
quant_bands.c | 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; 246 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); 290 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); 382 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT)); 474 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); 501 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT));
|
vq.c | 81 c = celt_cos_norm(EXTEND32(theta)); 82 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ 272 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); 291 xy = ADD32(xy, EXTEND32(X[best_id]));
|
celt_lpc.c | 101 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT);
|
arch.h | 152 #define EXTEND32(x) (x)
|
bands.c | 103 bandE[i+c*m->nbEBands] = EPSILON+VSHR32(EXTEND32(celt_sqrt(sum)),-shift); 252 Ediff = EXTEND32(logE[c*m->nbEBands+i])-EXTEND32(MIN16(prev1,prev2)); 311 a1 = DIV32_16(SHL32(EXTEND32(left),14),norm); 312 a2 = DIV32_16(SHL32(EXTEND32(right),14),norm); [all...] |
/external/speex/libspeex/ |
pseudofloat.h | 228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e); 236 return (EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e; 238 return EXTEND32(a.m)<<a.e; 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);
|
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)) 261 return VSHR32(EXTEND32(frac), -integer-2); 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14)));
|
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); 228 f2k.i = SHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); 237 f2k.r = SHR32(SUB32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1) [all...] |
filters.c | 125 if (scale > SHL32(EXTEND32(SIG_SCALING), 8)) 129 scale_1 = EXTRACT16(PDIV32_16(SHL32(EXTEND32(SIG_SCALING),7),scale)); 134 } else if (scale > SHR32(EXTEND32(SIG_SCALING), 2)) { 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)); 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)); 427 y[i] = PSHR32(ADD32(SHL32(EXTEND32(y1),LPC_SHIFT+1),mem2[0]),LPC_SHIFT) [all...] |
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); 375 prop_sum += EXTEND32(prop[i]); 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); 490 sum = EXTEND32(st->prop[0]); 494 sum = ADD32(sum, EXTEND32(st->prop[i])); 732 tmp32 = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(MULT16_16_P15(st->preemph, st->memD[chan]))) [all...] |
lsp.c | 162 sum = ADD32(EXTEND32(coef[m]), EXTEND32(MULT16_16_P14(coef[m-1],x))); 168 sum = ADD32(sum, EXTEND32(MULT16_16_P14(coef[m-i],b0))); 262 *px++ = SUB32(ADD32(EXTEND32(a[i]),EXTEND32(a[lpcrdr-i-1])), *p++); 263 *qx++ = ADD32(SUB32(EXTEND32(a[i]),EXTEND32(a[lpcrdr-i-1])), *q++); 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);
|
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);
|
preprocess.c | 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)); 309 return ADD32(EXTEND32(Q15_ONE),EXTEND32(DIV32_16(QCONST32(.1296,23), SHR32(xx,EXPIN_SHIFT-SNR_SHIFT)))); 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]), 344 spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo[i], 645 st->frame_shift = 14-spx_ilog2(EXTEND32(max_val)); 782 st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st->ps[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...] |
fixed_generic.h | 44 #define EXTEND32(x) ((spx_word32_t)(x)) 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 61 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
|
lpc.c | 93 spx_word32_t rr = NEG32(SHL32(EXTEND32(ac[i + 1]),13));
|
fixed_debug.h | 90 #define EXTEND32(x) _EXTEND32(x, __FILE__, __LINE__) 96 fprintf (stderr, "EXTEND32: input is not short: %d in %s: line %d\n", x, file, line); 164 #define PSHR32(a,shift) (SHR32(ADD32((a),((EXTEND32(1)<<((shift))>>1))),shift)) 282 if (ABS32(b)>=(EXTEND32(1)<<(15+Q))) 298 if (ABS32(b)>=(EXTEND32(1)<<(15+Q))) 300 res = ((((long long)a)*(long long)b) + ((EXTEND32(1)<<Q)>>1))>> Q;
|
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);
|
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)); 716 spx_word16_t fact = DIV32_16(SHL32(EXTEND32(tmp),14),gain_sum); 800 target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700));
|
arch.h | 164 #define EXTEND32(x) (x)
|
filters_bfin.h | 453 spx_word32_t yi = SHL32(EXTEND32(y[i]),LPC_SHIFT);
|
nb_celp.c | 409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT); 681 pi_g = ADD32(pi_g, SUB32(EXTEND32(interp_qlpc[i+1]),EXTEND32(interp_qlpc[i]))); 802 real_exc[i] = EXTRACT16(SUB32(EXTEND32(real_exc[i]), PSHR32(exc32[i],SIG_SHIFT-1))); 804 ener = SHL32(EXTEND32(compute_rms16(real_exc, st->subframeSize)),SIG_SHIFT); [all...] |
/external/qemu/target-arm/ |
iwmmxt_helper.c | 55 #define EXTEND32(a) ((uint64_t) (int32_t) (a)) 250 x = EXTEND32((x >> SH0) & 0xffffffff); \ 525 x = (((EXTEND32(x >> 0) >> n) & 0xffffffff) << 0) | 526 (((EXTEND32(x >> 32) >> n) & 0xffffffff) << 32); 653 return c + ((int32_t) EXTEND32(a) * (int32_t) EXTEND32(b)); 658 c += EXTEND32(EXTEND16S((a >> 0) & 0xffff) * 660 c += EXTEND32(EXTEND16S((a >> 16) & 0xffff) * 667 return c + (EXTEND32(EXTEND16S(a & 0xffff) *
|