Home
last modified time | relevance | path

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

/external/libopus/celt/
Dmathops.c103 r = ADD16(23557, MULT16_16_Q15(n, ADD16(-13490, MULT16_16_Q15(n, 6713)))); in celt_rsqrt_norm()
108 r2 = MULT16_16_Q15(r, r); in celt_rsqrt_norm()
109 y = SHL16(SUB16(ADD16(MULT16_16_Q15(r2, n), r2), 16384), 1); in celt_rsqrt_norm()
114 return ADD16(r, MULT16_16_Q15(r, MULT16_16_Q15(y, in celt_rsqrt_norm()
115 SUB16(MULT16_16_Q15(y, 12288), 16384)))); in celt_rsqrt_norm()
132 rt = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], in celt_sqrt()
133 MULT16_16_Q15(n, ADD16(C[3], MULT16_16_Q15(n, (C[4]))))))))); in celt_sqrt()
193 r = ADD16(30840, MULT16_16_Q15(-15420, n)); in celt_rcp()
197 r = SUB16(r, MULT16_16_Q15(r, in celt_rcp()
198 ADD16(MULT16_16_Q15(r, n), ADD16(r, -32768)))); in celt_rcp()
[all …]
Dmathops.h212 …frac = ADD16(C[0], MULT16_16_Q15(n, ADD16(C[1], MULT16_16_Q15(n, ADD16(C[2], MULT16_16_Q15(n, ADD1… in celt_log2()
231 …return ADD16(D0, MULT16_16_Q15(frac, ADD16(D1, MULT16_16_Q15(frac, ADD16(D2 , MULT16_16_Q15(D3,fra… in celt_exp2_frac()
Dcelt.c231 f = MULT16_16_Q15(window[i],window[i]); in comb_filter()
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.c82 num = MULT16_16_Q15(xcorr16,xcorr16); in find_best_pitch()
198 tmp = MULT16_16_Q15(QCONST16(.9f,15), tmp); in pitch_downsample()
199 lpc[i] = MULT16_16_Q15(lpc[i], tmp); in pitch_downsample()
203 lpc2[1] = lpc[1] + MULT16_16_Q15(c1,lpc[0]); in pitch_downsample()
204 lpc2[2] = lpc[2] + MULT16_16_Q15(c1,lpc[1]); in pitch_downsample()
205 lpc2[3] = lpc[3] + MULT16_16_Q15(c1,lpc[2]); in pitch_downsample()
206 lpc2[4] = MULT16_16_Q15(c1,lpc[3]); in pitch_downsample()
500 thresh = MAX16(QCONST16(.3f,15), MULT16_16_Q15(QCONST16(.7f,15),g0)-cont); in remove_doubling()
504 thresh = MAX16(QCONST16(.4f,15), MULT16_16_Q15(QCONST16(.85f,15),g0)-cont); in remove_doubling()
506 thresh = MAX16(QCONST16(.5f,15), MULT16_16_Q15(QCONST16(.9f,15),g0)-cont); in remove_doubling()
Dfixed_c6x.h64 #undef MULT16_16_Q15
65 #define MULT16_16_Q15(a,b) (_smpy(a,b))
Dfixed_c5x.h60 #undef MULT16_16_Q15
61 #define MULT16_16_Q15(a,b) (_smpy(a,b)) macro
Dvq.c84 theta = HALF16(MULT16_16_Q15(gain,gain)); in exp_rotation()
222 iy[j] = MULT16_16_Q15(X[j],rcp); in op_pvq_search_c()
276 Rxy = MULT16_16_Q15(Rxy,Rxy); in op_pvq_search_c()
288 Rxy = MULT16_16_Q15(Rxy,Rxy); in op_pvq_search_c()
432 itheta = MULT16_16_Q15(QCONST16(0.63662f,15),celt_atan2p(side, mid)); in stereo_itheta()
Dcelt_lpc.c238 xx[i] = MULT16_16_Q15(x[i],window[i]); in _celt_autocorr()
239 xx[n-i-1] = MULT16_16_Q15(x[n-i-1],window[i]); in _celt_autocorr()
Dcelt_decoder.c665 tmp = MULT16_16_Q15(QCONST16(.99f,15), tmp); in celt_decode_lost()
666 lpc[c*LPC_ORDER+i] = MULT16_16_Q15(lpc[c*LPC_ORDER+i], tmp); in celt_decode_lost()
716 attenuation = MULT16_16_Q15(fade, decay); in celt_decode_lost()
722 attenuation = MULT16_16_Q15(attenuation, decay); in celt_decode_lost()
725 SHL32(EXTEND32(MULT16_16_Q15(attenuation, in celt_decode_lost()
778 - MULT16_16_Q15(window[i], Q15ONE-ratio); in celt_decode_lost()
Dbands.c151 X[j+c*N] = MULT16_16_Q15(VSHR32(freq[j+c*N],shift-1),g); in normalise_bands()
332 r = SHR32(MULT16_16_Q15(sqrt_1, r),shift); in anti_collapse()
509 x2N = MULT16_16(MULT16_16_Q15(x[j], x[j]), N); in spreading_decision()
1227 lowband_out[j] = MULT16_16_Q15(n,X[j]); in quant_band()
1321 X[0] = MULT16_16_Q15(mid, X[0]); in quant_band_stereo()
1322 X[1] = MULT16_16_Q15(mid, X[1]); in quant_band_stereo()
1323 Y[0] = MULT16_16_Q15(side, Y[0]); in quant_band_stereo()
1324 Y[1] = MULT16_16_Q15(side, Y[1]); in quant_band_stereo()
Dfixed_generic.h153 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) macro
Darch.h264 #define MULT16_16_Q15(a,b) ((a)*(b)) macro
Dcelt_encoder.c817 sum = MULT16_16_Q15(QCONST16(1.f/8, 15), sum); in alloc_trim_analysis()
839 trim += MAX16(-QCONST16(4.f, 8), MULT16_16_Q15(QCONST16(.75f,15),logXC)); in alloc_trim_analysis()
1210 gain1 = MULT16_16_Q15(QCONST16(.7f,15),gain1); in run_prefilter()
1397 amount = MULT16_16_Q15(QCONST16(.0000031f, 30), IMAX(0, IMIN(32000, 96000-bitrate))); in compute_vbr()
1836 st->spec_avg += MULT16_16_Q15(QCONST16(.02f, 15), temporal_vbr); in celt_encode_with_ec()
1922 bandLogE[i+c*nbEBands] -= MULT16_16_Q15(energyError[i+c*nbEBands], QCONST16(0.25f, 15)); in celt_encode_with_ec()
Dquant_bands.c355 … *delayedIntra = ADD32(MULT16_32_Q15(MULT16_16_Q15(pred_coef[LM], pred_coef[LM]),*delayedIntra), in quant_coarse_energy()
Dfixed_debug.h595 #define MULT16_16_Q15(a, b) MULT16_16_Q15_(a, b, __FILE__, __LINE__) macro
/external/libopus/celt/mips/
Dcelt_mipsr1.h99 f = MULT16_16_Q15(window[i],window[i]); in comb_filter()
102 …asm volatile("MULT $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g00)), "r" ((int)x[i-T0])); in comb_filter()
104 …asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g01)), "r" ((int)ADD32(x[i… in comb_filter()
105 …asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15((Q15ONE-f),g02)), "r" ((int)ADD32(x[i… in comb_filter()
106 asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15(f,g10)), "r" ((int)x2)); in comb_filter()
107 … asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15(f,g11)), "r" ((int)ADD32(x3,x1))); in comb_filter()
108 … asm volatile("MADD $ac1, %0, %1" : : "r" ((int)MULT16_16_Q15(f,g12)), "r" ((int)ADD32(x4,x0))); in comb_filter()
/external/speex/libspeexdsp/
Dpreprocess.c89 #define SQR16_Q15(x) (MULT16_16_Q15((x),(x)))
313 …return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,… in qcurve()
329 gain_floor[i] = MULT16_16_Q15(noise_gain, in compute_gain_floor()
339 gain_floor[i] = MULT16_16_Q15(echo_gain, in compute_gain_floor()
634 st->frame[i] = MULT16_16_Q15(st->frame[i], st->window[i]); in preprocess_analysis()
800 …gamma = QCONST16(.1f,15)+MULT16_16_Q15(QCONST16(.89f,15),SQR16_Q15(DIV32_16_Q15(st->old_ps[i],ADD3… in speex_preprocess_run()
821 Pframe = QCONST16(.1f,15)+MULT16_16_Q15(QCONST16(.899f,15),qcurve(DIV32_16(Zframe,st->nbands))); in speex_preprocess_run()
855 P1 = QCONST16(.199f,15)+MULT16_16_Q15(QCONST16(.8f,15),qcurve (st->zeta[i])); in speex_preprocess_run()
856 q = Q15_ONE-MULT16_16_Q15(Pframe,P1); in speex_preprocess_run()
859 /*Q8*/tmp = MULT16_16_Q15((SHL32(1,SNR_SHIFT)+st->prior[i]),EXTRACT16(MIN32(Q15ONE,SHR32(spx_exp(-E… in speex_preprocess_run()
[all …]
Dmdf.c198 …den2 = MULT16_16_Q15(radius,radius) + MULT16_16_Q15(QCONST16(.7,15),MULT16_16_Q15(32767-radius,327… in filter_dc_notch16()
374 prop[i] += MULT16_16_Q15(QCONST16(.1f,15),max_sum); in mdf_adjust_prop()
493 st->prop[i] = MULT16_16_Q15(st->prop[i-1], decay); in speex_echo_state_init_mc()
935 …->e[chan*N+i+st->frame_size] = MULT16_16_Q15(st->window[i+st->frame_size],st->e[chan*N+i+st->frame… in speex_echo_cancellation()
1206 st->y[i] = MULT16_16_Q15(st->window[i],st->last_y[i]); in speex_echo_get_residual()
Dfixed_generic.h97 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) macro
Darch.h196 #define MULT16_16_Q15(a,b) ((a)*(b)) macro
Dpseudofloat.h258 r.m = MULT16_16_Q15(a,b); in FLOAT_MUL32U()
Dfixed_debug.h368 static inline short MULT16_16_Q15(int a, int b) in MULT16_16_Q15() function
/external/libopus/src/
Dopus_encoder.c459 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in stereo_fade()
463 diff = MULT16_16_Q15(g, diff); in stereo_fade()
471 diff = MULT16_16_Q15(g2, diff); in stereo_fade()
491 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in gain_fade()
494 out[i] = MULT16_16_Q15(g, in[i]); in gain_fade()
500 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in gain_fade()
503 out[i*2] = MULT16_16_Q15(g, in[i*2]); in gain_fade()
504 out[i*2+1] = MULT16_16_Q15(g, in[i*2+1]); in gain_fade()
510 out[i*channels+c] = MULT16_16_Q15(g2, in[i*channels+c]); in gain_fade()
708 width = MULT16_16_Q15(celt_sqrt(QCONST32(1.f,30)-MULT16_16(corr,corr)), ldiff); in compute_stereo_width()
Dopus_decoder.c198 opus_val16 w = MULT16_16_Q15(window[i*inc], window[i*inc]); in smooth_fade()
Dopus_multistream_encoder.c215 return max + diff_table[low] + MULT16_16_Q15(frac, SUB16(diff_table[low+1], diff_table[low])); in logSum()