Home
last modified time | relevance | path

Searched refs:SUB16 (Results 1 – 21 of 21) sorted by relevance

/external/libopus/celt/
Dmathops.c109 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); in celt_rsqrt_norm()
115 SUB16(MULT16_16_Q15(y, 12288), 16384)))); in celt_rsqrt_norm()
148 …return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32… in _celt_cos_pi_2()
197 r = SUB16(r, MULT16_16_Q15(r, in celt_rcp()
201 r = SUB16(r, ADD16(1, MULT16_16_Q15(r, in celt_rcp()
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()
387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy()
507 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
Dvq.c91 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ in exp_rotation()
424 s = SUB16(SHR16(X[i],1),SHR16(Y[i],1)); in stereo_itheta()
Dfixed_generic.h124 #define SUB16(a,b) ((opus_val16)(a)-(opus_val16)(b)) macro
Darch.h246 #define SUB16(a,b) ((a)-(b)) macro
Dbands.c473 X[j] = EXTRACT16(PSHR32(MULT16_16(lgain, SUB16(l,r)), kl+1)); in stereo_merge()
1325 X[0] = SUB16(tmp,Y[0]); in quant_band_stereo()
1328 X[1] = SUB16(tmp,Y[1]); in quant_band_stereo()
Dfixed_debug.h266 #define SUB16(a, b) SUB16_(a, b, __FILE__, __LINE__) macro
Dcelt_encoder.c440 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision()
1837 temporal_vbr = SUB16(frame_avg,st->spec_avg); in celt_encode_with_ec()
/external/speex/libspeexdsp/
Dmath_approx.h170 x = SUB16(16384,x); in spx_acos()
178 ret = SUB16(25736,ret); in spx_acos()
197 x = SUB16(25736,x); in spx_cos()
213 …return ADD16(1,MIN16(32766,ADD32(SUB16(L1,x2), MULT16_16_P15(x2, ADD32(L2, MULT16_16_P15(x2, ADD32… in _spx_cos_pi_2()
300 return SUB16(25736, SHR16(spx_atan01(x),1)); in spx_atan()
Dmdf.c710 ss_1 = SUB16(32767,ss); in speex_echo_cancellation()
798 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->e[chan*N+i+st->frame_size]); in speex_echo_cancellation()
880 st->e[chan*N+i] = SUB16(st->e[chan*N+i+st->frame_size], st->y[chan*N+i+st->frame_size]); in speex_echo_cancellation()
883 st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->y[chan*N+i+st->frame_size]); in speex_echo_cancellation()
950 … st->e[chan*N+i] = SUB16(st->input[chan*st->frame_size+i], st->y[chan*N+i+st->frame_size]); in speex_echo_cancellation()
1062 …st->Eh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Eh[j]), st->spec_average,… in speex_echo_cancellation()
1063 …st->Yh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Yh[j]), st->spec_average,… in speex_echo_cancellation()
Dpreprocess.c279 tmp=SUB16(Q15_ONE,tmp); in conj_window()
796 st->post[i] = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); in speex_preprocess_run()
823 …effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppres… in speex_preprocess_run()
914 …tmp = MULT16_16_P15(p,spx_sqrt(SHL32(EXTEND32(st->gain[i]),15))) + MULT16_16_P15(SUB16(Q15_ONE,p),… in speex_preprocess_run()
926 …tmp = MULT16_16_P15(p,spx_sqrt(SHL32(EXTEND32(st->gain[i]),15))) + MULT16_16_P15(SUB16(Q15_ONE,p),… in speex_preprocess_run()
Dfixed_generic.h66 #define SUB16(a,b) ((spx_word16_t)(a)-(spx_word16_t)(b)) macro
Darch.h176 #define SUB16(a,b) ((a)-(b)) macro
Dfilterbank.c100 bank->filter_left[i] = SUB16(Q15_ONE,val); in filterbank_new()
Dfixed_debug.h190 #define SUB16(a, b) _SUB16(a, b, __FILE__, __LINE__) macro
/external/speex/tmv/
Dfixed_tm.h74 #undef SUB16
81 #define SUB16(a,b) ((int)(a) - (int)(b)) macro
Dpreprocess_tm.h681 posti = SUB16(DIV32_16_Q8(ps[i],tot_noise), QCONST16(1.f,SNR_SHIFT)); in preprocess_compute_SNR()
858 MULT16_16_P15(SUB16(Q15_ONE,p),spx_sqrt(SHL32(EXTEND32(gfi),15))); in preprocess_compute_linear_gain()
896 MULT16_16_P15(SUB16(Q15_ONE,p),spx_sqrt(SHL32(EXTEND32(gfi),15)));
1072 …effective_echo_suppress = EXTRACT16(PSHR32(ADD32(MULT16_16(SUB16(Q15_ONE,Pframe), st->echo_suppres… in speex_preprocess_run()
Dmdf_tm.h805 ss_1 = SUB16(32767,ss); in mdf_smooth()
858 register spx_word16_t spec_average1 = SUB16(32767,spec_average); in mdf_compute_filtered_spectra_crosscorrelations()
/external/elfutils/backends/
Driscv_reloc.def64 RELOC_TYPE (SUB16, REL)
/external/rnnoise/src/
Darch.h216 #define SUB16(a,b) ((a)-(b)) macro
/external/libopus/src/
Dopus_multistream_encoder.c215 return max + diff_table[low] + MULT16_16_Q15(frac, SUB16(diff_table[low+1], diff_table[low])); in logSum()