/external/libopus/celt/ |
mathops.c | 159 if (x>SHL32(EXTEND32(1), 16)) 160 x = SUB32(SHL32(EXTEND32(1), 17),x); 163 if (x<SHL32(EXTEND32(1), 15)) 205 return VSHR32(EXTEND32(r),i-16);
|
mathops.h | 57 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); 212 return VSHR32(EXTEND32(frac), -integer-2); 244 arg = celt_div(SHL32(EXTEND32(y),15),x); 250 arg = celt_div(SHL32(EXTEND32(x),15),y);
|
celt_lpc.c | 116 opus_val32 sum = SHL32(EXTEND32(_x[i]), 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)));
|
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))
|
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); 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); 506 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]));
|
arch.h | 155 #define EXTEND32(x) (x)
|
celt_encoder.c | 341 norm = SHL32(EXTEND32(len2),6+14)/ADD32(EPSILON,SHR32(mean,1)); 409 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); 541 L1 += EXTEND32(ABS16(tmp[i])); 872 L = EXTEND32(X[j]); 873 R = EXTEND32(X[N0+j]); 978 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); 981 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); 984 boost = (int)SHR32(EXTEND32(follower[i])*width/6,DB_SHIFT); [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...] |
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);
|
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...] |
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);
|
/external/libopus/src/ |
mlp.c | 102 opus_val32 sum = SHL32(EXTEND32(*W++),8); 110 opus_val32 sum = SHL32(EXTEND32(*W++),14);
|
opus_multistream_encoder.c | 197 diff = SUB32(EXTEND32(a),EXTEND32(b)); 200 diff = SUB32(EXTEND32(b),EXTEND32(a)); [all...] |