Home
last modified time | relevance | path

Searched refs:MULT16_32_Q15 (Results 1 – 25 of 36) sorted by relevance

12

/external/libopus/celt/arm/
Dcelt_mdct_ne10.c84 *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); in clt_mdct_forward_neon()
85 *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); in clt_mdct_forward_neon()
104 *yp++ = -MULT16_32_Q15(*wp1, xp1[-N2]) + MULT16_32_Q15(*wp2, *xp2); in clt_mdct_forward_neon()
105 *yp++ = MULT16_32_Q15(*wp2, *xp1) + MULT16_32_Q15(*wp1, xp2[N2]); in clt_mdct_forward_neon()
251 *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); in clt_mdct_backward_neon()
252 *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); in clt_mdct_backward_neon()
Dfixed_armv4.h48 #undef MULT16_32_Q15
62 #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv4(a, b)) macro
69 #define MAC16_32_Q15(c, a, b) ADD32(c, MULT16_32_Q15(a, b))
Dfixed_armv5e.h52 #undef MULT16_32_Q15
64 #define MULT16_32_Q15(a, b) (MULT16_32_Q15_armv5e(a, b)) macro
/external/libopus/celt/
Dmdct.c163 *yp++ = MULT16_32_Q15(*wp2, xp1[N2]) + MULT16_32_Q15(*wp1,*xp2); in clt_mdct_forward_c()
164 *yp++ = MULT16_32_Q15(*wp1, *xp1) - MULT16_32_Q15(*wp2, xp2[-N2]); in clt_mdct_forward_c()
183 *yp++ = -MULT16_32_Q15(*wp1, xp1[-N2]) + MULT16_32_Q15(*wp2, *xp2); in clt_mdct_forward_c()
184 *yp++ = MULT16_32_Q15(*wp2, *xp1) + MULT16_32_Q15(*wp1, xp2[N2]); in clt_mdct_forward_c()
336 *yp1++ = SUB32_ovflw(MULT16_32_Q15(*wp2, x2), MULT16_32_Q15(*wp1, x1)); in clt_mdct_backward_c()
337 *xp1-- = ADD32_ovflw(MULT16_32_Q15(*wp1, x2), MULT16_32_Q15(*wp2, x1)); in clt_mdct_backward_c()
Dcelt.c175 + MULT16_32_Q15(g10,x2) in comb_filter_const_c()
176 + MULT16_32_Q15(g11,ADD32(x1,x3)) in comb_filter_const_c()
177 + MULT16_32_Q15(g12,ADD32(x0,x4)); in comb_filter_const_c()
233 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g00),x[i-T0]) in comb_filter()
234 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g01),ADD32(x[i-T0+1],x[i-T0-1])) in comb_filter()
235 + MULT16_32_Q15(MULT16_16_Q15((Q15ONE-f),g02),ADD32(x[i-T0+2],x[i-T0-2])) in comb_filter()
236 + MULT16_32_Q15(MULT16_16_Q15(f,g10),x2) in comb_filter()
237 + MULT16_32_Q15(MULT16_16_Q15(f,g11),ADD32(x1,x3)) in comb_filter()
238 + MULT16_32_Q15(MULT16_16_Q15(f,g12),ADD32(x0,x4)); in comb_filter()
Dpitch.c83 if (MULT16_32_Q15(num,best_den[1]) > MULT16_32_Q15(best_num[1],Syy)) in find_best_pitch()
85 if (MULT16_32_Q15(num,best_den[0]) > MULT16_32_Q15(best_num[0],Syy)) in find_best_pitch()
189 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in pitch_downsample()
381 if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) in pitch_search()
383 else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) in pitch_search()
419 g = MULT16_32_Q15(den, xy); in compute_pitch_gain()
523 if ((xcorr[2]-xcorr[0]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[0])) in remove_doubling()
525 else if ((xcorr[0]-xcorr[2]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[2])) in remove_doubling()
Dfixed_c6x.h43 #undef MULT16_32_Q15
44 #define MULT16_32_Q15(a,b) (_mpylill(a, b) >> 15) macro
Dfixed_c5x.h70 #undef MULT16_32_Q15
71 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),(b)),15)) macro
Dcelt_decoder.c253 m0 = MULT16_32_Q15(coef0, tmp0); in deemphasis_stereo_simple()
254 m1 = MULT16_32_Q15(coef0, tmp1); in deemphasis_stereo_simple()
305 m = MULT16_32_Q15(coef0, tmp) in deemphasis()
306 - MULT16_32_Q15(coef1, x[j]); in deemphasis()
307 tmp = SHL32(MULT16_32_Q15(coef3, tmp), 2); in deemphasis()
319 m = MULT16_32_Q15(coef0, tmp); in deemphasis()
331 m = MULT16_32_Q15(coef0, tmp); in deemphasis()
340 m = MULT16_32_Q15(coef0, tmp); in deemphasis()
653 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in celt_decode_lost()
786 MULT16_32_Q15(tmp_g, buf[DECODE_BUFFER_SIZE-N+i]); in celt_decode_lost()
[all …]
Dmathops.c79 result = MULT16_32_Q15(rcp, a); in frac_div32()
81 result = ADD32(result, SHL32(MULT16_32_Q15(rcp, rem),2)); in frac_div32()
Dfixed_generic.h55 #define MULT16_32_Q15(a,b) ((opus_val32)SHR((opus_int64)((opus_val16)(a))*(b),15)) macro
57 #define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000… macro
Dcelt_encoder.c375 id = MAX32(0,MIN32(127,MULT16_32_Q15(tmp[i]+EPSILON,norm))); /* Do not round to nearest */ in transient_analysis()
552 m = MULT16_32_Q15(coef1, inp[i]) - MULT16_32_Q15(coef0, tmp); in celt_preemphasis()
901 sumMS = MULT16_32_Q15(QCONST16(0.707107f, 15), sumMS); in stereo_analysis()
906 return MULT16_32_Q15((m->eBands[13]<<(LM+1))+thetas, sumMS) in stereo_analysis()
907 > MULT16_32_Q15(m->eBands[13]<<(LM+1), sumLR); in stereo_analysis()
1339 target -= (opus_int32)MIN32(MULT16_32_Q15(max_frac,target), in compute_vbr()
1346 target += (opus_int32)SHL32(MULT16_32_Q15(tf_estimate-tf_calibration, target),1); in compute_vbr()
1390 target = base_target + (opus_int32)MULT16_32_Q15(QCONST16(0.67f, 15), target-base_target); in compute_vbr()
1399 target += (opus_int32)MULT16_32_Q15(tvbr_factor, target); in compute_vbr()
1738 bandE[i] = IMIN(bandE[i], MULT16_32_Q15(QCONST16(1e-4f,15),bandE[0])); in celt_encode_with_ec()
[all …]
/external/rnnoise/src/
Dpitch.c84 if (MULT16_32_Q15(num,best_den[1]) > MULT16_32_Q15(best_num[1],Syy)) in find_best_pitch()
86 if (MULT16_32_Q15(num,best_den[0]) > MULT16_32_Q15(best_num[0],Syy)) in find_best_pitch()
197 ac[i] -= MULT16_32_Q15(2*i*i, ac[i]); in pitch_downsample()
375 if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a)) in pitch_search()
377 else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c)) in pitch_search()
411 g = MULT16_32_Q15(den, xy); in compute_pitch_gain()
513 if ((xcorr[2]-xcorr[0]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[0])) in remove_doubling()
515 else if ((xcorr[0]-xcorr[2]) > MULT16_32_Q15(QCONST16(.7f,15),xcorr[1]-xcorr[2])) in remove_doubling()
/external/speex/libspeexdsp/
Dmdf.c208 mem[0] = mem[1] + SHL32(SHL32(-EXTEND32(vin),15) + MULT16_32_Q15(radius,vout),1); in filter_dc_notch16()
212 mem[1] = SHL32(EXTEND32(vin),15) - MULT16_32_Q15(den2,vout); in filter_dc_notch16()
213 out[i] = SATURATE32(PSHR32(MULT16_32_Q15(radius,vout),15),32767); in filter_dc_notch16()
902 …st->Davg1 = ADD32(MULT16_32_Q15(QCONST16(.6f,15),st->Davg1), MULT16_32_Q15(QCONST16(.4f,15),SUB32(… in speex_echo_cancellation()
903 …st->Davg2 = ADD32(MULT16_32_Q15(QCONST16(.85f,15),st->Davg2), MULT16_32_Q15(QCONST16(.15f,15),SUB3… in speex_echo_cancellation()
904 …D(FLOAT_MULT(VAR1_SMOOTH, st->Dvar1), FLOAT_MUL32U(MULT16_32_Q15(QCONST16(.4f,15),Sff), MULT16_32_… in speex_echo_cancellation()
905 …D(FLOAT_MULT(VAR2_SMOOTH, st->Dvar2), FLOAT_MUL32U(MULT16_32_Q15(QCONST16(.15f,15),Sff), MULT16_32… in speex_echo_cancellation()
1057 st->power[j] = MULT16_32_Q15(ss_1,st->power[j]) + 1 + MULT16_32_Q15(ss,st->Xf[j]); in speex_echo_cancellation()
1068 …st->Eh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Eh[j]), st->spec_average,… in speex_echo_cancellation()
1069 …st->Yh[j] = MAC16_32_Q15(MULT16_32_Q15(SUB16(32767,st->spec_average),st->Yh[j]), st->spec_average,… in speex_echo_cancellation()
[all …]
Dfixed_arm4.h51 #undef MULT16_32_Q15
52 static inline spx_word32_t MULT16_32_Q15(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q15() function
Dpreprocess.c330 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(PSHR32(noise[i],NOISE_SHIFT) + MULT16_32_Q15(gain_ratio,echo[… in compute_gain_floor()
340 …spx_sqrt(SHL32(EXTEND32(DIV32_16_Q15(MULT16_32_Q15(gain_ratio,PSHR32(noise[i],NOISE_SHIFT)) + echo… in compute_gain_floor()
667 …st->S[i] = MULT16_32_Q15(QCONST16(.8f,15),st->S[i]) + MULT16_32_Q15(QCONST16(.05f,15),st->ps[i-1]… in update_noise_prob()
668 … + MULT16_32_Q15(QCONST16(.1f,15),st->ps[i]) + MULT16_32_Q15(QCONST16(.05f,15),st->ps[i+1]); in update_noise_prob()
669 st->S[0] = MULT16_32_Q15(QCONST16(.8f,15),st->S[0]) + MULT16_32_Q15(QCONST16(.2f,15),st->ps[0]); in update_noise_prob()
670 …st->S[N-1] = MULT16_32_Q15(QCONST16(.8f,15),st->S[N-1]) + MULT16_32_Q15(QCONST16(.2f,15),st->ps[N… in update_noise_prob()
703 if (MULT16_32_Q15(QCONST16(.4f,15),st->S[i]) > st->Smin[i]) in update_noise_prob()
756 …st->echo_noise[i] = MAX32(MULT16_32_Q15(QCONST16(.6f,15),st->echo_noise[i]), st->residual_echo[i]); in speex_preprocess_run()
778 …st->noise[i] = MAX32(EXTEND32(0),MULT16_32_Q15(beta_1,st->noise[i]) + MULT16_32_Q15(beta,SHL32(st-… in speex_preprocess_run()
851 st->gain[i] = EXTRACT16(MIN32(Q15_ONE, MULT16_32_Q15(prior_ratio, MM))); in speex_preprocess_run()
[all …]
Dfixed_arm5e.h56 #undef MULT16_32_Q15
57 static inline spx_word32_t MULT16_32_Q15(spx_word16_t x, spx_word32_t y) { in MULT16_32_Q15() function
Dfixed_bfin.h108 #undef MULT16_32_Q15
109 static inline spx_word32_t MULT16_32_Q15(spx_word16_t a, spx_word32_t b) in MULT16_32_Q15() function
Dresample.c478MULT16_32_Q15(interp[0],SHR32(accum[0], 1)) + MULT16_32_Q15(interp[1],SHR32(accum[1], 1)) + MULT1… in resampler_basic_interpolate_single()
541 …sum = MULT16_32_Q15(interp[0],accum[0]) + MULT16_32_Q15(interp[1],accum[1]) + MULT16_32_Q15(interp… in resampler_basic_interpolate_double()
Dfixed_debug.h313 #define MULT16_32_Q15(a,b) MULT16_32_QX(a,b,15) macro
315 #define MAC16_32_Q15(c,a,b) ADD32((c),MULT16_32_Q15((a),(b)))
Darch.h184 #define MULT16_32_Q15(a,b) ((a)*(b)) macro
/external/libopus/celt/mips/
Dfixed_generic_mipsr1.h91 #undef MULT16_32_Q15
92 static inline int MULT16_32_Q15(int a, int b) in MULT16_32_Q15() function
Dmdct_mipsr1.h281 *yp1++ = MULT16_32_Q15(*wp2, x2) - MULT16_32_Q15(*wp1, x1); in clt_mdct_backward()
282 *xp1-- = MULT16_32_Q15(*wp1, x2) + MULT16_32_Q15(*wp2, x1); in clt_mdct_backward()
/external/libopus/celt/x86/
Dpitch_sse.c177 + MULT16_32_Q15(g10,x[i-T]) in comb_filter_const_sse()
178 + MULT16_32_Q15(g11,ADD32(x[i-T+1],x[i-T-1])) in comb_filter_const_sse()
179 + MULT16_32_Q15(g12,ADD32(x[i-T+2],x[i-T-2])); in comb_filter_const_sse()
/external/libopus/src/
Dopus_encoder.c688 mem->XX += MULT16_32_Q15(short_alpha, xx-mem->XX); in compute_stereo_width()
689 mem->XY += MULT16_32_Q15(short_alpha, xy-mem->XY); in compute_stereo_width()
690 mem->YY += MULT16_32_Q15(short_alpha, yy-mem->YY); in compute_stereo_width()
1135 … st->peak_signal_energy = MAX32(MULT16_32_Q15(QCONST16(0.999f, 15), st->peak_signal_energy), in opus_encode_native()
1369 mode_voice = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[0][0]) in opus_encode_native()
1370 + MULT16_32_Q15(stereo_width,mode_thresholds[1][0])); in opus_encode_native()
1371 mode_music = (opus_int32)(MULT16_32_Q15(Q15ONE-stereo_width,mode_thresholds[1][1]) in opus_encode_native()
1372 + MULT16_32_Q15(stereo_width,mode_thresholds[1][1])); in opus_encode_native()

12