Searched refs:SHL16 (Results 1 - 25 of 42) sorted by relevance

12

/external/speex/libspeex/
H A Dquant_lsp_bfin.h91 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5));
161 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5));
H A Dquant_lsp.c52 #define LSP_LINEAR(i) (SHL16(i+1,11))
54 #define LSP_DIV_256(x) (SHL16((spx_word16_t)x, 5))
55 #define LSP_DIV_512(x) (SHL16((spx_word16_t)x, 4))
56 #define LSP_DIV_1024(x) (SHL16((spx_word16_t)x, 3))
111 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5));
122 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5));
143 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5));
154 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5));
H A Dltp.c255 sw[i]=SHL16(sw[i],1);
509 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp]);
514 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp-pitch]);
636 *cumul_gain = MULT16_32_Q13(SHL16(params->gain_cdbk[4*best_gain_index+3],8), MAX32(1024,*cumul_gain));
649 target[i]=SHL16(target[i],1);
729 gain[0] = SHL16(gain[0],7);
730 gain[1] = SHL16(gain[1],7);
731 gain[2] = SHL16(gain[2],7);
790 exc[i]=MULT16_16(SHL16(pitch_coef, 7),exc2[i-start]);
794 exc[i]=MULT16_32_Q15(SHL16(pitch_coe
[all...]
H A Dfilters.c140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8);
150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6);
245 return SHL16(spx_sqrt(DIV32(sum,len)),4);
258 sum2 = MAC16_16(sum2,SHL16(x[i],sig_shift),SHL16(x[i],sig_shift));
259 sum2 = MAC16_16(sum2,SHL16(x[i+1],sig_shift),SHL16(x[i+1],sig_shift));
260 sum2 = MAC16_16(sum2,SHL16(x[i+2],sig_shift),SHL16(x[i+2],sig_shift));
261 sum2 = MAC16_16(sum2,SHL16(
[all...]
H A Dmath_approx.h259 frac = SHL16(x-SHL16(integer,11),3);
H A Darch.h166 #define SHL16(a,shift) (a) macro
H A Dfixed_generic.h46 #define SHL16(a,shift) ((a) << (shift)) macro
H A Dstereo.c290 stereo->balance = spx_exp(MULT16_16(sign, SHL16(dexp, 9)));
/external/chromium_org/third_party/speex/libspeex/
H A Dquant_lsp.c52 #define LSP_LINEAR(i) (SHL16(i+1,11))
54 #define LSP_DIV_256(x) (SHL16((spx_word16_t)x, 5))
55 #define LSP_DIV_512(x) (SHL16((spx_word16_t)x, 4))
56 #define LSP_DIV_1024(x) (SHL16((spx_word16_t)x, 3))
111 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5));
122 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5));
143 tmp=SUB16(x[j],SHL16((spx_word16_t)*ptr++,5));
154 x[j] = SUB16(x[j],SHL16((spx_word16_t)cdbk[best_id*nbDim+j],5));
H A Dltp.c255 sw[i]=SHL16(sw[i],1);
509 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp]);
514 exc[j]=MAC16_16(exc[j],SHL16(gain[2-i],7),exc2[j-pp-pitch]);
636 *cumul_gain = MULT16_32_Q13(SHL16(params->gain_cdbk[4*best_gain_index+3],8), MAX32(1024,*cumul_gain));
649 target[i]=SHL16(target[i],1);
729 gain[0] = SHL16(gain[0],7);
730 gain[1] = SHL16(gain[1],7);
731 gain[2] = SHL16(gain[2],7);
790 exc[i]=MULT16_16(SHL16(pitch_coef, 7),exc2[i-start]);
794 exc[i]=MULT16_32_Q15(SHL16(pitch_coe
[all...]
H A Dfilters.c140 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),8);
150 y[i] = PSHR32(MULT16_16(scale_1, SHL16(x[i],2)),6);
245 return SHL16(spx_sqrt(DIV32(sum,len)),4);
258 sum2 = MAC16_16(sum2,SHL16(x[i],sig_shift),SHL16(x[i],sig_shift));
259 sum2 = MAC16_16(sum2,SHL16(x[i+1],sig_shift),SHL16(x[i+1],sig_shift));
260 sum2 = MAC16_16(sum2,SHL16(x[i+2],sig_shift),SHL16(x[i+2],sig_shift));
261 sum2 = MAC16_16(sum2,SHL16(
[all...]
H A Dmath_approx.h259 frac = SHL16(x-SHL16(integer,11),3);
H A Darch.h166 #define SHL16(a,shift) (a) macro
H A Dstereo.c290 stereo->balance = spx_exp(MULT16_16(sign, SHL16(dexp, 9)));
/external/chromium_org/third_party/opus/src/celt/
H A Dmathops.h181 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT);
198 frac = SHL16(x, 4);
211 frac = celt_exp2_frac(x-SHL16(integer,10));
H A Dmathops.c108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1);
H A Dquant_bands.c246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT);
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1);
532 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1);
552 - SHL16((opus_val16)eMeans[i],6);
H A Darch.h157 #define SHL16(a,shift) (a) macro
H A Dfixed_generic.h70 #define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) macro
H A Dcelt_encoder.c290 tmp[i] = SHL16(tmp[i], shift);
911 +QCONST16(.5f,DB_SHIFT)+SHL16(9-lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6)
1542 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT));
1642 opus_val16 offset = shortBlocks?HALF16(SHL16(LM, DB_SHIFT)):0;
1678 bandLogE2[i] += HALF16(SHL16(LM, DB_SHIFT));
/external/libopus/celt/
H A Dmathops.h181 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT);
198 frac = SHL16(x, 4);
211 frac = celt_exp2_frac(x-SHL16(integer,10));
H A Dmathops.c108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1);
H A Dquant_bands.c246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT);
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1);
532 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1);
552 - SHL16((opus_val16)eMeans[i],6);
H A Darch.h157 #define SHL16(a,shift) (a) macro
H A Dfixed_generic.h70 #define SHL16(a,shift) ((opus_int16)((opus_uint16)(a)<<(shift))) macro

Completed in 2066 milliseconds

12