Home
last modified time | relevance | path

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

/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.c423 m = ADD16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
424 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.h91 #define SHR16(a,shift) ((a) >> (shift)) macro
118 #define HALF16(x) (SHR16(x,1))
Dpitch.c332 x_lp4[j] = SHR16(x_lp4[j], shift); in pitch_search()
334 y_lp4[j] = SHR16(y_lp4[j], shift); in pitch_search()
Darch.h227 #define SHR16(a,shift) (a) macro
Dfixed_debug.h145 #define SHR16(a, shift) SHR16_(a, shift, __FILE__, __LINE__) macro
240 #define HALF16(x) (SHR16(x,1))
Dbands.c331 r = SHR16(MIN16(thresh, r),1); in anti_collapse()
442 mid2 = SHR16(mid, 1); in stereo_merge()
935 lowband_out[0] = SHR16(X[0],4); in quant_band_n1()
Dcelt_encoder.c853 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
854 trim -= 2*SHR16(tf_estimate, 14-8); in alloc_trim_analysis()
/external/speex/libspeexdsp/
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()
Dfixed_generic.h45 #define SHR16(a,shift) ((a) >> (shift)) macro
49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>1)),shift))
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.h159 #define SHR16(a,shift) (a) macro
/external/rnnoise/src/
Dpitch.c317 x_lp4[j] = SHR16(x_lp4[j], shift); in pitch_search()
319 y_lp4[j] = SHR16(y_lp4[j], shift); in pitch_search()
Darch.h197 #define SHR16(a,shift) (a) macro