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

/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 Dmath_approx.h170 x = SUB16(16384,x);
178 ret = SUB16(25736,ret);
197 x = SUB16(25736,x);
213 return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32(L3, MULT16_16_P15(L4, x2))))))));
300 return SUB16(25736, SHR16(spx_atan01(x),1));
H A Dquant_lsp.c111 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));
171 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR(i));
254 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR(i));
340 qlsp[i]=SUB16(qlsp[i],LSP_LINEAR_HIGH(i));
H A Dlpc.c112 error = SUB16(error,MULT16_16_Q13(r,MULT16_16_Q13(error,r)));
H A Dcb_search.c94 t[n] = SUB16(t[n],PSHR32(MULT16_16(g,r[n]),13));
179 t[subvect_size*i+m] = SUB16(t[subvect_size*i+m], res[m]);
236 target[j]=SUB16(target[j],PSHR16(r2[j],2));
509 target[j]=SUB16(target[j],PSHR16(r2[j],2));
H A Dlsp.c166 b0 = SUB16(MULT16_16_Q13(x,b0), b1);
331 dd = MULT16_16_Q15(delta,SUB16(FREQ_SCALE, MULT16_16_Q14(MULT16_16_Q14(xl,xl),14000)));
339 xr = SUB16(xl, dd); /* interval spacing */
H A Darch.h182 #define SUB16(a,b) ((a)-(b)) macro
H A Dfilterbank.c100 bank->filter_left[i] = SUB16(Q15_ONE,val);
H A Dfixed_generic.h66 #define SUB16(a,b) ((spx_word16_t)(a)-(spx_word16_t)(b)) macro
H A Dmdf.c716 ss_1 = SUB16(32767,ss);
804 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->e[chan*N+i+st->frame_size]);
886 st->e[chan*N+i] = SUB16(st->e[chan*N+i+st->frame_size], st->y[chan*N+i+st->frame_size]);
889 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->y[chan*N+i+st->frame_size]);
956 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->y[chan*N+i+st->frame_size]);
1068 st->Eh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Eh[j]), st->spec_average, st->Rf[j]);
1069 st->Yh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Yh[j]), st->spec_average, st->Yf[j]);
H A Dpreprocess.c283 tmp=SUB16(Q15_ONE,tmp);
800 st->post[i] = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT));
827 effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppress), MULT16_16(Pframe, st->echo_suppress_active)),15));
918 tmp = MULT16_16_P15(p,spx_sqrt(SHL32(EXTEND32(st->gain[i]),15))) + MULT16_16_P15(SUB16(Q15_ONE,p),spx_sqrt(SHL32(EXTEND32(st->gain_floor[i]),15)));
930 tmp = MULT16_16_P15(p,spx_sqrt(SHL32(EXTEND32(st->gain[i]),15))) + MULT16_16_P15(SUB16(Q15_ONE,p),spx_sqrt(SHL32(EXTEND32(st->gain_floor[i]),15)));
H A Dfixed_debug.h190 #define SUB16(a, b) _SUB16(a, b, __FILE__, __LINE__) macro
196 fprintf (stderr, "SUB16: inputs are not short: %d %d in %s: line %d\n", a, b, file, line);
200 fprintf (stderr, "SUB16: output is not short: %d in %s: line %d\n", res, file, line);
H A Dfilters.c466 y2k=SUB32(y2k,MULT16_16(a[j],SUB16(x[i+j],x2[i-j])));
469 y2k=ADD32(y2k,MULT16_16(a[j],SUB16(x[i+j],x2[i-j])));
H A Dltp.c520 new_target[i] = SUB16(new_target[i], EXTRACT16(PSHR32(tmp,6)));
H A Dnb_celp.c1052 noise_gain = MULT16_16_Q15(innov_gain, MULT16_16_Q15(fact, SUB16(Q15ONE,MULT16_16_Q15(pitch_gain,pitch_gain))));
1453 SUB16(MULT16_16_Q15(Q15_ONE-MULT16_16_16(QCONST16(.85f,9),g),EXTRACT16(PSHR32(innov[i],SIG_SHIFT))),
H A Dsb_celp.c686 target[i]=SUB16(sw[i],res[i]);
/external/qemu/target-arm/
H A Dop_addsub.h52 SUB16(a, b, 0);
53 SUB16(a >> 16, b >> 16, 1);
77 SUB16(a >> 16, b, 1);
87 SUB16(a, b >> 16, 0);
101 #undef SUB16 macro
H A Dhelper.c2404 #define SUB16(a, b, n) RESULT(sub16_sat(a, b), n, 16); macro
2447 #define SUB16(a, b, n) RESULT(sub16_usat(a, b), n, 16); macro
2473 #define SUB16(a, b, n) SARITH16(a, b, n, -) macro
2498 #define SUB16(a, b, n) do { \ macro
2522 #define SUB16(a, b, n) \ macro
2535 #define SUB16(a, b, n) \ macro
/external/chromium_org/third_party/opus/src/celt/
H A Dmathops.c108 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1);
114 SUB16(MULT16_16_Q15(y, 12288), 16384))));
145 return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32(L3, MULT16_16_P15(L4, x2
194 r = SUB16(r, MULT16_16_Q15(r,
198 r = SUB16(r, ADD16(1, MULT16_16_Q15(r,
H A Dfixed_generic.h96 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) macro
H A Dquant_bands.c149 opus_val16 d = SUB16(SHR16(eBands[i+c*len], 3), SHR16(oldEBands[i+c*len], 3));
209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT);
382 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT));
501 offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.5f,DB_SHIFT));
H A Dvq.c82 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */
391 s = SUB16(SHR16(X[i],1),SHR16(Y[i],1));
H A Darch.h170 #define SUB16(a,b) ((a)-(b)) macro
H A Dbands.c388 X[j] = EXTRACT16(PSHR32(MULT16_16(lgain, SUB16(l,r)), kl+1));
969 X[0] = SUB16(tmp,Y[0]);
972 X[1] = SUB16(tmp,Y[1]);
H A Dfixed_debug.h259 #define SUB16(a, b) SUB16_(a, b, __FILE__, __LINE__) macro
265 fprintf (stderr, "SUB16: inputs are not short: %d %d in %s: line %d\n", a, b, file, line);
273 fprintf (stderr, "SUB16: output is not short: %d in %s: line %d\n", res, file, line);

Completed in 155 milliseconds