Home
last modified time | relevance | path

Searched refs:SHR16 (Results 1 – 19 of 19) sorted by relevance

/external/speex/libspeex/
Dfilters.c239 sum2 = MAC16_16(sum2,SHR16(x[i],1),SHR16(x[i],1)); in compute_rms16()
240 sum2 = MAC16_16(sum2,SHR16(x[i+1],1),SHR16(x[i+1],1)); in compute_rms16()
241 sum2 = MAC16_16(sum2,SHR16(x[i+2],1),SHR16(x[i+2],1)); in compute_rms16()
242 sum2 = MAC16_16(sum2,SHR16(x[i+3],1),SHR16(x[i+3],1)); in compute_rms16()
457 x[i+M-1]=SHR16(xx[i],1); in qmf_decomp()
459 mem[i]=SHR16(xx[N-i-1],1); in qmf_decomp()
727 exc[i] = SHR16(exc[i],1); in multicomb()
729 iexc[i] = SHR16(iexc[i],1); in multicomb()
Dmath_approx.h254 integer = SHR16(x,11); in spx_exp2()
294 return SHR16(spx_atan01(x),1); in spx_atan()
300 return SUB16(25736, SHR16(spx_atan01(x),1)); in spx_atan()
Dltp.h46 …ine gain_3tap_to_1tap(g) (ABS(g[1]) + (g[0]>0 ? g[0] : -SHR16(g[0],1)) + (g[2]>0 ? g[2] : -SHR16(g…
Dfixed_generic.h45 #define SHR16(a,shift) ((a) >> (shift)) macro
49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>1)),shift))
Dltp.c226 sw[i]=SHR16(sw[i],1); in open_loop_nbest_pitch()
412 e[j] = SHR16(e[j],1); in pitch_gain_search_3tap()
414 new_target[j] = SHR16(new_target[j],1); in pitch_gain_search_3tap()
432 e0 = SHR16(e0,1); in pitch_gain_search_3tap()
704 spx_word16_t tmp = count_lost < 4 ? last_pitch_gain : SHR16(last_pitch_gain,1); in pitch_unquant_3tap()
Dlsp.c609 lsp[i]= SHR16(lsp[i],1) + SHR16(lsp[i+1]-m,1); in lsp_enforce_margin()
Dfixed_debug.h103 #define SHR16(a, shift) _SHR16(a, shift, __FILE__, __LINE__) macro
163 #define PSHR16(a,shift) (SHR16(ADD16((a),((1<<((shift))>>1))),shift))
Darch.h165 #define SHR16(a,shift) (a) macro
Dstereo.c168 data[i] = SHR16(data[2*i],1)+PSHR16(data[2*i+1],1); in speex_encode_stereo_int()
Dnb_celp.c1240 fact = SHR16(19661,SHR32(lsp_dist,LSP_SHIFT+2)); in nb_decode()
/external/libopus/celt/
Dmathops.h213 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT); in celt_log2()
238 integer = SHR16(x,10); in celt_exp2()
279 return SHR16(celt_atan01(EXTRACT16(arg)),1); in celt_atan2p()
285 return 25736-SHR16(celt_atan01(EXTRACT16(arg)),1); in celt_atan2p()
Dvq.c419 m = ADD16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
420 s = SUB16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
Dquant_bands.c149 opus_val16 d = SUB16(SHR16(eBands[i+c*len], 3), SHR16(oldEBands[i+c*len], 3)); in loss_distortion()
209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); in quant_coarse_energy_impl()
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in quant_energy_finalise()
533 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in unquant_energy_finalise()
Dfixed_generic.h84 #define SHR16(a,shift) ((a) >> (shift)) macro
111 #define HALF16(x) (SHR16(x,1))
Dpitch.c330 x_lp4[j] = SHR16(x_lp4[j], shift); in pitch_search()
332 y_lp4[j] = SHR16(y_lp4[j], shift); in pitch_search()
Dfixed_debug.h145 #define SHR16(a, shift) SHR16_(a, shift, __FILE__, __LINE__) macro
240 #define HALF16(x) (SHR16(x,1))
Darch.h205 #define SHR16(a,shift) (a) macro
Dbands.c331 r = SHR16(MIN16(thresh, r),1); in anti_collapse()
442 mid2 = SHR16(mid, 1); in stereo_merge()
936 lowband_out[0] = SHR16(X[0],4); in quant_band_n1()
Dcelt_encoder.c847 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
848 trim -= 2*SHR16(tf_estimate, 14-8); in alloc_trim_analysis()