/external/libopus/celt/mips/ |
H A D | vq_mipsr1.h | 57 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); 58 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); 66 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); 67 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); 119 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1));
|
/external/libopus/src/ |
H A D | mlp.c | 53 xx = EXTRACT16(SHR32(_x, 8)); 57 xx -= EXTRACT16(SHR32(MULT16_16(20972,i),8)); 118 out[j] = tansig_approx(EXTRACT16(PSHR32(sum,17)));
|
/external/speex/libspeex/ |
H A D | filters_bfin.h | 460 ytmp[i] = EXTRACT16(SHR32(yi,LPC_SHIFT)); 462 y[i] = EXTRACT16(SHR32(yi2,LPC_SHIFT)); 478 x[i] = EXTRACT16(SHR32(_x[i],SIG_SHIFT)); 490 y[i] = EXTRACT16(SHR32(_y[i],SIG_SHIFT)); 501 y[i] = EXTRACT16(SHR32(_y[i],SIG_SHIFT));
|
H A D | math_approx.h | 126 res = MULT16_16(EXTRACT16(SHR32(*seed,16)),std); 127 return EXTRACT16(PSHR32(SUB32(res, SHR32(res, 3)),14)); 225 return _spx_cos_pi_2(EXTRACT16(x)); 227 return NEG32(_spx_cos_pi_2(EXTRACT16(65536-x))); 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14)));
|
H A D | stereo.c | 193 balance_id = scal_quant(EXTRACT16(balance), balance_bounds, 32); 215 tmp=scal_quant(EXTRACT16(e_ratio), e_ratio_quant_bounds, 4); 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));
|
H A D | filterbank.c | 63 max_mel = toBARK(EXTRACT16(sampling/2)); 82 curr_freq = EXTRACT16(MULT16_32_P15(i,df)); 96 val = DIV32_16(mel - id1*mel_interval,EXTRACT16(PSHR32(mel_interval,15))); 167 ps[i] = EXTRACT16(PSHR32(tmp,15));
|
H A D | filters.c | 103 yi = EXTRACT16(SATURATE(PSHR32(vout,14),32767)); 118 y[i] = SHL32(MULT16_32_Q14(EXTRACT16(SHR32(x[i],7)),scale),7); 129 scale_1 = EXTRACT16(PDIV32_16(SHL32(EXTEND32(SIG_SCALING),7),scale)); 206 tmp = EXTRACT16(SHR32(x[i],sig_shift)); 208 tmp = EXTRACT16(SHR32(x[i+1],sig_shift)); 210 tmp = EXTRACT16(SHR32(x[i+2],sig_shift)); 212 tmp = EXTRACT16(SHR32(x[i+3],sig_shift)); 217 return EXTRACT16(PSHR32(SHL32(EXTEND32(spx_sqrt(DIV32(sum,len))),(sig_shift+3)),SIG_SHIFT)); 292 y[i] = EXTRACT16(SHR32(x[i], sig_shift)); 326 yi = EXTRACT16(SATURAT [all...] |
H A D | fixed_debug.h | 77 #define EXTRACT16(x) _EXTRACT16(x, __FILE__, __LINE__) macro 83 fprintf (stderr, "EXTRACT16: input is not short: %d in %s: line %d\n", x, file, line); 269 #define MAC16_16_Q11(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),11))))) 270 #define MAC16_16_Q13(c,a,b) (EXTRACT16(ADD16((c),EXTRACT16(SHR32(MULT16_16((a),(b)),13))))) 271 #define MAC16_16_P13(c,a,b) (EXTRACT16(ADD32((c),SHR32(ADD32(4096,MULT16_16((a),(b))),13))))
|
H A D | preprocess.c | 328 noise_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),noise_suppress)),1))); 329 gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),effective_echo_suppress-noise_suppress)),1))); 338 echo_gain = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(0.11513,11),effective_echo_suppress)),1))); 339 gain_ratio = EXTRACT16(MIN32(Q15_ONE,SHR32(spx_exp(MULT16_16(QCONST16(.2302585f,11),noise_suppress-effective_echo_suppress)),1))); 807 st->prior[i] = EXTRACT16(PSHR32(ADD32(MULT16_16(gamma,MAX16(0,st->post[i])), MULT16_16(Q15_ONE-gamma,DIV32_16_Q8(st->old_ps[i],tot_noise))), 15)); 827 effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppress), MULT16_16(Pframe, st->echo_suppress_active)),15)); 855 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); 863 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-EXTRACT16(theta)),1)))); 865 /*Q8*/tmp = EXTRACT16(PSHR3 [all...] |
H A D | nb_celp.c | 308 w_sig[i] = EXTRACT16(SHR32(MULT16_16(st->winBuf[i],st->window[i]),SIG_SHIFT)); 310 w_sig[i] = EXTRACT16(SHR32(MULT16_16(in[i-st->windowSize+st->frameSize],st->window[i]),SIG_SHIFT)); 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))); 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)); 1419 exc[i]=EXTRACT16(SATURATE32(PSHR32(ADD32(SHL32(exc32[i],1),innov[i]),SIG_SHIFT),32767)); 1424 innov_save[i] = EXTRACT16(PSHR32(innov[i], SIG_SHIFT)); 1444 exc[st->voc_offset]=MULT16_16(spx_sqrt(MULT16_16_16(2,ol_pitch)),EXTRACT16(PSHR32(MULT16_16(g,PSHR32(ol_gain,SIG_SHIFT)),6))); 1453 SUB16(MULT16_16_Q15(Q15_ONE-MULT16_16_16(QCONST16(.85f,9),g),EXTRACT16(PSHR3 [all...] |
H A D | cb_search.c | 75 res16 = EXTRACT16(SHR32(resj, 13)); 233 r2[j] = EXTRACT16(PSHR32(e[j] ,6)); 506 r2[j] = EXTRACT16(PSHR32(e[j] ,6));
|
H A D | arch.h | 163 #define EXTRACT16(x) (x) macro
|
H A D | fixed_generic.h | 43 #define EXTRACT16(x) ((spx_word16_t)(x)) macro
|
H A D | ltp.c | 520 new_target[i] = SUB16(new_target[i], EXTRACT16(PSHR32(tmp,6))); 797 res[i] = EXTRACT16(PSHR32(exc[i], SIG_SHIFT-1)); 800 target[i]=EXTRACT16(SATURATE(SUB32(EXTEND32(target[i]),EXTEND32(res[i])),32700)); 834 exc[i] = EXTRACT16(PSHR32(exc_out[i],13));
|
H A D | mdf.c | 363 tmp += MULT16_16(EXTRACT16(SHR32(W[p*N*M + i*N+j],18)), EXTRACT16(SHR32(W[p*N*M + i*N+j],18))); 748 st->input[chan*st->frame_size+i] = EXTRACT16(tmp32); 772 st->x[speak*N+i+st->frame_size] = EXTRACT16(tmp32); 846 st->wtmp2[i] = EXTRACT16(PSHR32(st->W[chan*N*K*M + j*N*K + speak*N + i],NORMALIZE_SCALEDOWN+16)); 931 st->foreground[i] = EXTRACT16(PSHR32(st->W[i],16)); 1270 st->wtmp2[i] = EXTRACT16(PSHR32(st->W[j*N+i],16+NORMALIZE_SCALEDOWN));
|
H A D | sb_celp.c | 393 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i>>1]),SIG_SHIFT)); 396 w_sig[i] = EXTRACT16(SHR32(MULT16_16(high[i],st->window[i]),SIG_SHIFT)); 590 filter_ratio=EXTRACT16(SATURATE(PDIV32(SHL32(ADD32(rl,82),7),ADD32(82,rh)),32767)); 1020 filter_ratio=EXTRACT16(SATURATE(PDIV32(SHL32(ADD32(rl,82),7),ADD32(82,rh)),32767)); 1077 innov_save[2*i]=EXTRACT16(PSHR32(exc[i],SIG_SHIFT)); 1083 st->excBuf[i]=EXTRACT16(PSHR32(exc[i],SIG_SHIFT));
|
H A D | pseudofloat.h | 228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e);
|
/external/libopus/celt/ |
H A D | vq.c | 55 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); 56 *Xptr++ = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); 64 Xptr[stride] = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x2), s, x1), 15)); 65 *Xptr-- = EXTRACT16(PSHR32(MAC16_16(MULT16_16(c, x1), ms, x2), 15)); 135 X[i] = EXTRACT16(PSHR32(MULT16_16(g, iy[i]), k+1)); 228 rcp = EXTRACT16(MULT16_32_Q16(K-1, celt_rcp(sum))); 279 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); 369 *xptr = EXTRACT16(PSHR32(MULT16_16(g, *xptr), k+1));
|
H A D | fixed_generic.h | 79 #define EXTRACT16(x) ((opus_val16)(x)) macro 103 #define SATURATE16(x) (EXTRACT16((x)>32767 ? 32767 : (x)<-32768 ? -32768 : (x))) 106 #define ROUND16(x,a) (EXTRACT16(PSHR32((x),(a)))) 163 return EXTRACT16(x);
|
H A D | mathops.c | 165 return _celt_cos_pi_2(EXTRACT16(x)); 167 return NEG16(_celt_cos_pi_2(EXTRACT16(65536-x)));
|
H A D | mathops.h | 247 return SHR16(celt_atan01(EXTRACT16(arg)),1); 253 return 25736-SHR16(celt_atan01(EXTRACT16(arg)),1);
|
H A D | bands.c | 115 sum = MAC16_16(sum, EXTRACT16(SHR32(X[j+c*N],shift)), 116 EXTRACT16(SHR32(X[j+c*N],shift))); 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))); 323 opus_val32 r32 = SHR32(celt_exp2(-EXTRACT16(Ediff)),1); 383 X[j] = EXTRACT16(SHR32(MAC16_16(MULT16_16(a1, l), a2, r), 14)); 396 X[j] = EXTRACT16(SHR32(ADD32(l, r), 15)); 397 Y[j] = EXTRACT16(SHR32(SUB32(r, l), 15)); 448 X[j] = EXTRACT16(PSHR3 [all...] |
H A D | arch.h | 189 #define EXTRACT16(x) (x) macro
|
H A D | pitch.c | 76 xcorr16 = EXTRACT16(VSHR32(xcorr[i], xshift)); 441 return EXTRACT16(MIN32(g, Q15ONE));
|
/external/libopus/celt/arm/ |
H A D | fixed_armv5e.h | 145 return EXTRACT16(res);
|