/external/speex/libspeexdsp/ |
D | pseudofloat.h | 228 return EXTRACT16((EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e); in FLOAT_EXTRACT16() 236 return (EXTEND32(a.m)+(EXTEND32(1)<<(-a.e-1)))>>-a.e; in FLOAT_EXTRACT32() 238 return EXTEND32(a.m)<<a.e; in FLOAT_EXTRACT32() 274 if (ABS32(a)>=SHL32(EXTEND32(b.m-1),15)) in FLOAT_DIV32_FLOAT() 302 if (ABS32(a)>=SHL32(EXTEND32(b-1),15)) in FLOAT_DIV32() 341 m = SHL32(EXTEND32(a.m), 14); in FLOAT_SQRT()
|
D | math_approx.h | 174 ret = spx_sqrt(SHL32(EXTEND32(sq),13)); in spx_acos() 219 if (x>SHL32(EXTEND32(1), 16)) in spx_cos_norm() 220 x = SUB32(SHL32(EXTEND32(1), 17),x); in spx_cos_norm() 223 if (x<SHL32(EXTEND32(1), 15)) in spx_cos_norm() 261 return VSHR32(EXTEND32(frac), -integer-2); in spx_exp2() 299 x = DIV32_16(SHL32(EXTEND32(32767),29-e), EXTRACT16(SHR32(x, e-14))); in spx_atan()
|
D | kiss_fftr.c | 237 f2k.r = SHR32(SUB32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),1); in kiss_fftr2() 238 f2k.i = PSHR32(ADD32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),1); in kiss_fftr2() 240 f1kr = SHL32(ADD32(EXTEND32(st->tmpbuf[k].r), EXTEND32(st->tmpbuf[ncfft-k].r)),13); in kiss_fftr2() 241 f1ki = SHL32(SUB32(EXTEND32(st->tmpbuf[k].i), EXTEND32(st->tmpbuf[ncfft-k].i)),13); in kiss_fftr2()
|
D | preprocess.c | 277 …tmp = SQR16_Q15(QCONST16(.5f,15)-MULT16_16_P15(QCONST16(.5f,15),spx_cos_norm(SHL32(EXTEND32(x),2))… in conj_window() 280 w[i]=spx_sqrt(SHL32(EXTEND32(tmp),15)); in conj_window() 305 …return ADD32(EXTEND32(Q15_ONE),EXTEND32(DIV32_16(QCONST32(.1296,23), SHR32(xx,EXPIN_SHIFT-SNR_SHIF… in hypergeom_gain() 313 …return DIV32_16(SHL32(EXTEND32(32767),9),ADD16(512,MULT16_16_Q15(QCONST16(.60f,15),DIV32_16(32767,… in qcurve() 330 …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() 641 st->frame_shift = 14-spx_ilog2(EXTEND32(max_val)); in preprocess_analysis() 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() 793 …spx_word32_t tot_noise = ADD32(ADD32(ADD32(EXTEND32(1), PSHR32(st->noise[i],NOISE_SHIFT)) , st->ec… in speex_preprocess_run() 820 Zframe = ADD32(Zframe, EXTEND32(st->zeta[i])); in speex_preprocess_run() [all …]
|
D | mdf.c | 206 spx_word32_t vout = mem[0] + SHL32(EXTEND32(vin),15); in filter_dc_notch16() 208 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() 375 prop_sum += EXTEND32(prop[i]); in mdf_adjust_prop() 434 st->spec_average = DIV32_16(SHL32(EXTEND32(st->frame_size), 15), st->sampling_rate); in speex_echo_state_init_mc() 436 st->beta0 = DIV32_16(SHL32(EXTEND32(st->frame_size), 16), st->sampling_rate); in speex_echo_state_init_mc() 437 st->beta_max = DIV32_16(SHL32(EXTEND32(st->frame_size), 14), st->sampling_rate); in speex_echo_state_init_mc() 490 sum = EXTEND32(st->prop[0]); in speex_echo_state_init_mc() 494 sum = ADD32(sum, EXTEND32(st->prop[i])); in speex_echo_state_init_mc() 732 …tmp32 = SUB32(EXTEND32(st->input[chan*st->frame_size+i]), EXTEND32(MULT16_16_P15(st->preemph, st->… in speex_echo_cancellation() [all …]
|
D | fixed_generic.h | 44 #define EXTEND32(x) ((spx_word32_t)(x)) macro 50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 61 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
|
D | fixed_debug.h | 90 #define EXTEND32(x) _EXTEND32(x, __FILE__, __LINE__) macro 164 #define PSHR32(a,shift) (SHR32(ADD32((a),((EXTEND32(1)<<((shift))>>1))),shift)) 282 if (ABS32(b)>=(EXTEND32(1)<<(15+Q))) in _MULT16_32_QX() 298 if (ABS32(b)>=(EXTEND32(1)<<(15+Q))) in MULT16_32_PX() 300 res = ((((long long)a)*(long long)b) + ((EXTEND32(1)<<Q)>>1))>> Q; in MULT16_32_PX()
|
D | kiss_fft.c | 57 Fout2->r = PSHR32(SUB32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2() 58 Fout2->i = PSHR32(SUB32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2() 59 Fout->r = PSHR32(ADD32(SHL32(EXTEND32(Fout->r), 14), tr), 15); in kf_bfly2() 60 Fout->i = PSHR32(ADD32(SHL32(EXTEND32(Fout->i), 14), ti), 15); in kf_bfly2()
|
D | arch.h | 156 #define EXTEND32(x) (x) macro
|
D | resample.c | 312 interp[1] = EXTRACT16(EXTEND32(x) + SHR32(SUB32(EXTEND32(x2),EXTEND32(x3)),1)); in cubic_coef()
|
/external/libopus/celt/ |
D | mathops.c | 160 if (x>SHL32(EXTEND32(1), 16)) in celt_cos_norm() 161 x = SUB32(SHL32(EXTEND32(1), 17),x); in celt_cos_norm() 164 if (x<SHL32(EXTEND32(1), 15)) in celt_cos_norm() 206 return VSHR32(EXTEND32(r),i-16); in celt_rcp()
|
D | mathops.h | 90 return MAX32(EXTEND32(maxval),-EXTEND32(minval)); in celt_maxabs16() 244 return VSHR32(EXTEND32(frac), -integer-2); in celt_exp2() 276 arg = celt_div(SHL32(EXTEND32(y),15),x); in celt_atan2p() 282 arg = celt_div(SHL32(EXTEND32(x),15),y); in celt_atan2p()
|
D | fixed_c6x.h | 67 #define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, le…
|
D | celt_lpc.c | 109 sum[0] = SHL32(EXTEND32(x[i ]), SIG_SHIFT); in celt_fir_c() 110 sum[1] = SHL32(EXTEND32(x[i+1]), SIG_SHIFT); in celt_fir_c() 111 sum[2] = SHL32(EXTEND32(x[i+2]), SIG_SHIFT); in celt_fir_c() 112 sum[3] = SHL32(EXTEND32(x[i+3]), SIG_SHIFT); in celt_fir_c() 121 opus_val32 sum = SHL32(EXTEND32(x[i]), SIG_SHIFT); in celt_fir_c()
|
D | fixed_c5x.h | 76 #define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, le…
|
D | vq.c | 86 c = celt_cos_norm(EXTEND32(theta)); in exp_rotation() 87 s = celt_cos_norm(EXTEND32(SUB16(Q15ONE,theta))); /* sin(theta) */ in exp_rotation() 270 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[0])),rshift)); in op_pvq_search_c() 282 Rxy = EXTRACT16(SHR32(ADD32(xy, EXTEND32(X[j])),rshift)); in op_pvq_search_c() 304 xy = ADD32(xy, EXTEND32(X[best_id])); in op_pvq_search_c()
|
D | quant_bands.c | 194 f = SHL32(EXTEND32(x),7) - PSHR32(MULT16_16(coef,oldE), 8) - prev[c]; in quant_coarse_energy_impl() 248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in quant_coarse_energy_impl() 289 max_decay = MIN32(max_decay, SHL32(EXTEND32(nbAvailableBytes),DB_SHIFT-3)); in quant_coarse_energy() 387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy() 480 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in unquant_coarse_energy() 507 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in unquant_fine_energy()
|
D | fixed_generic.h | 81 #define EXTEND32(x) ((opus_val32)(x)) macro 93 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) 100 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
|
D | celt_encoder.c | 361 norm = SHL32(EXTEND32(len2),6+14)/ADD32(EPSILON,SHR32(mean,1)); in transient_analysis() 440 mean_diff = ADD32(mean_diff, EXTEND32(MAX16(0, SUB16(x1, x2)))); in patch_transient_decision() 577 L1 += EXTEND32(ABS16(tmp[i])); in l1_metric() 893 L = EXTEND32(X[j]); in stereo_analysis() 894 R = EXTEND32(X[N0+j]); in stereo_analysis() 1133 boost = (int)SHR32(EXTEND32(follower[i]),DB_SHIFT); in dynalloc_analysis() 1136 boost = (int)SHR32(EXTEND32(follower[i])*8,DB_SHIFT); in dynalloc_analysis() 1139 boost = (int)SHR32(EXTEND32(follower[i])*width/6,DB_SHIFT); in dynalloc_analysis() 2134 alpha = celt_rcp(SHL32(EXTEND32(st->vbr_count+20),16)); in celt_encode_with_ec()
|
D | bands.c | 126 bandE[i+c*m->nbEBands] = EPSILON+VSHR32(EXTEND32(celt_sqrt(sum)),-shift); in compute_band_energies() 318 Ediff = EXTEND32(logE[c*m->nbEBands+i])-EXTEND32(MIN16(prev1,prev2)); in anti_collapse() 401 a1 = DIV32_16(SHL32(EXTEND32(left),14),norm); in intensity_stereo() 402 a2 = DIV32_16(SHL32(EXTEND32(right),14),norm); in intensity_stereo() 1225 n = celt_sqrt(SHL32(EXTEND32(N0),22)); in quant_band()
|
D | arch.h | 223 #define EXTEND32(x) (x) macro
|
D | mdct.c | 91 trig[i] = TRIG_UPSCALE*celt_cos_norm(DIV32(ADD32(SHL32(EXTEND32(i),17),N2+16384),N)); in clt_mdct_init()
|
/external/libopus/celt/x86/ |
D | celt_lpc_sse4_1.c | 60 noA = EXTEND32(1) << SIG_SHIFT >> 1; in celt_fir_sse4_1() 83 y[i] = SATURATE16(ADD32(EXTEND32(x[i]), PSHR32(sum, SIG_SHIFT))); in celt_fir_sse4_1()
|
D | vq_sse2.c | 193 xy = ADD32(xy, EXTEND32(X[best_id])); in op_pvq_search_sse2()
|
/external/libopus/src/ |
D | opus_multistream_encoder.c | 201 diff = SUB32(EXTEND32(a),EXTEND32(b)); in logSum() 204 diff = SUB32(EXTEND32(b),EXTEND32(a)); in logSum()
|