Home
last modified time | relevance | path

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

123

/external/libopus/silk/
Dstereo_MS_to_LR.c62 … sum = silk_LSHIFT( silk_ADD_LSHIFT( x1[ n ] + x1[ n + 2 ], x1[ n + 1 ], 1 ), 9 ); /* Q11 */ in silk_stereo_MS_to_LR()
63 … sum = silk_SMLAWB( silk_LSHIFT( (opus_int32)x2[ n + 1 ], 8 ), sum, pred0_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR()
64 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)x1[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR()
70 … sum = silk_LSHIFT( silk_ADD_LSHIFT( x1[ n ] + x1[ n + 2 ], x1[ n + 1 ], 1 ), 9 ); /* Q11 */ in silk_stereo_MS_to_LR()
71 … sum = silk_SMLAWB( silk_LSHIFT( (opus_int32)x2[ n + 1 ], 8 ), sum, pred0_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR()
72 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)x1[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_MS_to_LR()
DA2NLSF.c58 p[ k - 2 ] -= silk_LSHIFT( p[ k ], 1 ); in silk_A2NLSF_trans_poly()
73 x_Q16 = silk_LSHIFT( x, 4 ); in silk_A2NLSF_eval_poly()
105 P[dd] = silk_LSHIFT( 1, 16 ); in silk_A2NLSF_init()
106 Q[dd] = silk_LSHIFT( 1, 16 ); in silk_A2NLSF_init()
206 nom = silk_LSHIFT( ylo, 8 - BIN_DIV_STEPS_A2NLSF_FIX ) + silk_RSHIFT( den, 1 ); in silk_A2NLSF()
214 …NLSF[ root_ix ] = (opus_int16)silk_min_32( silk_LSHIFT( (opus_int32)k, 8 ) + ffrac, silk_int16_MAX… in silk_A2NLSF()
228 ylo = silk_LSHIFT( 1 - ( root_ix & 2 ), 12 ); in silk_A2NLSF()
248 silk_bwexpander_32( a_Q16, d, 65536 - silk_LSHIFT( 1, i ) ); in silk_A2NLSF()
DHP_variable_cutoff.c50 …pitch_freq_Hz_Q16 = silk_DIV32_16( silk_LSHIFT( silk_MUL( psEncC1->fs_kHz, 1000 ), 16 ), psEncC1->… in silk_HP_variable_cutoff()
55 …pitch_freq_log_Q7 = silk_SMLAWB( pitch_freq_log_Q7, silk_SMULWB( silk_LSHIFT( -quality_Q15, 2 ), q… in silk_HP_variable_cutoff()
74 silk_LSHIFT( silk_lin2log( VARIABLE_HP_MIN_CUTOFF_HZ ), 8 ), in silk_HP_variable_cutoff()
75 silk_LSHIFT( silk_lin2log( VARIABLE_HP_MAX_CUTOFF_HZ ), 8 ) ); in silk_HP_variable_cutoff()
DInlines.h111 …a32_nrm = silk_LSHIFT(a32, a_headrm); /* Q: a_headrm … in silk_DIV32_varQ()
113 …b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm … in silk_DIV32_varQ()
156 …b32_nrm = silk_LSHIFT(b32, b_headrm); /* Q: b_headrm … in silk_INVERSE32_varQ()
162 …result = silk_LSHIFT(b32_inv, 16); /* Q: 61 - b_headrm … in silk_INVERSE32_varQ()
165 …err_Q32 = silk_LSHIFT( ((opus_int32)1<<29) - silk_SMULWB(b32_nrm, b32_inv), 3 ); /* Q32 … in silk_INVERSE32_varQ()
DNLSF2A.c53 out[0] = silk_LSHIFT( 1, QA ); in silk_NLSF2A_find_poly()
57 …out[k+1] = silk_LSHIFT( out[k-1], 1 ) - (opus_int32)silk_RSHIFT_ROUND64( silk_SMULL( ftmp, out[k] … in silk_NLSF2A_find_poly()
100 f_frac = NLSF[k] - silk_LSHIFT( f_int, 15 - 7 ); in silk_NLSF2A()
110 …cos_LSF_QA[ordering[k]] = silk_RSHIFT_ROUND( silk_LSHIFT( cos_val, 8 ) + silk_MUL( delta, f_frac )… in silk_NLSF2A()
135 silk_bwexpander_32( a32_QA1, d, 65536 - silk_LSHIFT( 2, i ) ); in silk_NLSF2A()
Dstereo_LR_to_MS.c122 width_Q14 = silk_DIV32_varQ( silk_LSHIFT( mid_side_rates_bps[ 1 ], 1 ) - min_mid_rate_bps, in silk_stereo_LR_to_MS()
201 w_Q24 = silk_LSHIFT( state->width_prev_Q14, 10 ); in silk_stereo_LR_to_MS()
205 deltaw_Q24 = silk_LSHIFT( silk_SMULWB( width_Q14 - state->width_prev_Q14, denom_Q16 ), 10 ); in silk_stereo_LR_to_MS()
210 …sum = silk_LSHIFT( silk_ADD_LSHIFT( mid[ n ] + (opus_int32)mid[ n + 2 ], mid[ n + 1 ], 1 ), 9 ); … in silk_stereo_LR_to_MS()
212 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)mid[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_LR_to_MS()
218 w_Q24 = silk_LSHIFT( width_Q14, 10 ); in silk_stereo_LR_to_MS()
220 …sum = silk_LSHIFT( silk_ADD_LSHIFT( mid[ n ] + (opus_int32)mid[ n + 2 ], mid[ n + 1 ], 1 ), 9 ); … in silk_stereo_LR_to_MS()
222 … sum = silk_SMLAWB( sum, silk_LSHIFT( (opus_int32)mid[ n + 1 ], 11 ), pred1_Q13 ); /* Q8 */ in silk_stereo_LR_to_MS()
DLPC_inv_pred_gain.c58 rc_Q31 = -silk_LSHIFT( A_QA[ k ], 31 - QA ); in LPC_inverse_pred_gain_QA_c()
67 invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); in LPC_inverse_pred_gain_QA_c()
104 rc_Q31 = -silk_LSHIFT( A_QA[ 0 ], 31 - QA ); in LPC_inverse_pred_gain_QA_c()
111 invGain_Q30 = silk_LSHIFT( silk_SMMUL( invGain_Q30, rc_mult1_Q30 ), 2 ); in LPC_inverse_pred_gain_QA_c()
DPLC.c58 psDec->sPLC.pitchL_Q8 = silk_LSHIFT( psDec->frame_length, 8 - 1 ); in silk_PLC_Reset()
127 psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); in silk_PLC_update()
139 tmp = silk_LSHIFT( V_PITCH_GAIN_START_MIN_Q14, 10 ); in silk_PLC_update()
148 tmp = silk_LSHIFT( V_PITCH_GAIN_START_MAX_Q14, 14 ); in silk_PLC_update()
155 psPLC->pitchL_Q8 = silk_LSHIFT( silk_SMULBB( psDec->fs_kHz, 18 ), 8 ); in silk_PLC_update()
282 down_scale_Q30 = silk_LSHIFT( down_scale_Q30, LOG2_INV_LPC_GAIN_HIGH_THRES ); in silk_PLC_conceal()
338 …psPLC->pitchL_Q8 = silk_min_32( psPLC->pitchL_Q8, silk_LSHIFT( silk_SMULBB( MAX_PITCH_LAG_MS, psDe… in silk_PLC_conceal()
427 psPLC->conc_energy = silk_LSHIFT( psPLC->conc_energy, LZ ); in silk_PLC_glue_frames()
432 gain_Q16 = silk_LSHIFT( silk_SQRT_APPROX( frac_Q24 ), 4 ); in silk_PLC_glue_frames()
435 slope_Q16 = silk_LSHIFT( slope_Q16, 2 ); in silk_PLC_glue_frames()
DNSQ.c135 … HarmShapeFIRPacked_Q14 |= silk_LSHIFT( (opus_int32)silk_RSHIFT( HarmShapeGain_Q14[ k ], 1 ), 16 ); in silk_NSQ_c()
143 if( ( k & ( 3 - silk_LSHIFT( LSF_interpolation_flag, 1 ) ) ) == 0 ) { in silk_NSQ_c()
267 n_LTP_Q13 = silk_LSHIFT( n_LTP_Q13, 1 ); in silk_noise_shape_quantizer()
302 q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); in silk_noise_shape_quantizer()
318 q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); in silk_noise_shape_quantizer()
336 exc_Q14 = silk_LSHIFT( q1_Q10, 4 ); in silk_noise_shape_quantizer()
356 sLTP_Q15[ NSQ->sLTP_buf_idx ] = silk_LSHIFT( LPC_exc_Q14, 1 ); in silk_noise_shape_quantizer()
399 inv_gain_Q31 = silk_LSHIFT( silk_SMULWB( inv_gain_Q31, LTP_scale_Q14 ), 2 ); in silk_nsq_scale_states()
DLP_variable_cutoff.c115 fac_Q16 = silk_LSHIFT( TRANSITION_FRAMES - psLP->transition_frame_no, 16 - 6 ); in silk_LP_variable_cutoff()
117 …fac_Q16 = silk_DIV32_16( silk_LSHIFT( TRANSITION_FRAMES - psLP->transition_frame_no, 16 ), TRANSIT… in silk_LP_variable_cutoff()
120 fac_Q16 -= silk_LSHIFT( ind, 16 ); in silk_LP_variable_cutoff()
Dbiquad_alt.c64 out32_Q14 = silk_LSHIFT( silk_SMLAWB( S[ 0 ], B_Q28[ 0 ], inval ), 2 ); in silk_biquad_alt_stride1()
100 out32_Q14[ 0 ] = silk_LSHIFT( silk_SMLAWB( S[ 0 ], B_Q28[ 0 ], in[ 2 * k + 0 ] ), 2 ); in silk_biquad_alt_stride2_c()
101 out32_Q14[ 1 ] = silk_LSHIFT( silk_SMLAWB( S[ 2 ], B_Q28[ 0 ], in[ 2 * k + 1 ] ), 2 ); in silk_biquad_alt_stride2_c()
Dcontrol_SNR.c67 …frac_Q6 = silk_DIV32( silk_LSHIFT( TargetRate_bps - rateTable[ k - 1 ], 6 ), rateTable[ k ] - rate… in silk_control_SNR()
68 …psEncC->SNR_dB_Q7 = silk_LSHIFT( silk_SNR_table_Q1[ k - 1 ], 6 ) + silk_MUL( frac_Q6, silk_SNR_tab… in silk_control_SNR()
Dresampler_down2.c52 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k ], 10 ); in silk_resampler_down2()
61 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k + 1 ], 10 ); in silk_resampler_down2()
Dana_filt_bank_1.c53 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k ], 10 ); in silk_ana_filt_bank_1()
62 in32 = silk_LSHIFT( (opus_int32)in[ 2 * k + 1 ], 10 ); in silk_ana_filt_bank_1()
DLPC_fit.c62 … chirp_Q16 = SILK_FIX_CONST( 0.999, 16 ) - silk_DIV32( silk_LSHIFT( maxabs - silk_int16_MAX, 14 ), in silk_LPC_fit()
74 a_QIN[ k ] = silk_LSHIFT( (opus_int32)a_QOUT[ k ], QIN - QOUT ); in silk_LPC_fit()
/external/libopus/silk/fixed/mips/
Dprefilter_FIX_mipsr1.h65 state_cur = silk_LSHIFT( input[ n ], 14 ); in silk_warped_LPC_analysis_filter_FIX()
75 state[ 0 ] = silk_LSHIFT( input[ n+1 ], 14 ); in silk_warped_LPC_analysis_filter_FIX()
104 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX()
108 … res_Q2[ n+1 ] = silk_LSHIFT( (opus_int32)input[ n+1 ], 2 ) - silk_RSHIFT_ROUND( acc_Q22, 9 ); in silk_warped_LPC_analysis_filter_FIX()
150 sLF_AR_shp_Q12 = silk_SUB32( st_res_Q12[ i ], silk_LSHIFT( n_Tilt_Q10, 2 ) ); in silk_prefilt_FIX()
151 sLF_MA_shp_Q12 = silk_SUB32( sLF_AR_shp_Q12, silk_LSHIFT( n_LF_Q10, 2 ) ); in silk_prefilt_FIX()
168 sLF_AR_shp_Q12 = silk_SUB32( st_res_Q12[ i ], silk_LSHIFT( n_Tilt_Q10, 2 ) ); in silk_prefilt_FIX()
169 sLF_MA_shp_Q12 = silk_SUB32( sLF_AR_shp_Q12, silk_LSHIFT( n_LF_Q10, 2 ) ); in silk_prefilt_FIX()
Dnoise_shape_analysis_FIX_mipsr1.h74 b_Q8 = silk_SMULWB( silk_LSHIFT( b_Q8, 8 ), b_Q8 ); in silk_noise_shape_analysis_FIX()
100 nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); in silk_noise_shape_analysis_FIX()
142 BWExp1_Q16 = silk_DIV32_16( silk_LSHIFT( BWExp1_Q16, 14 ), silk_RSHIFT( BWExp2_Q16, 2 ) ); in silk_noise_shape_analysis_FIX()
277 …psEncCtrl->LF_shp_Q14[ k ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - silk_SMULWB( streng… in silk_noise_shape_analysis_FIX()
287 psEncCtrl->LF_shp_Q14[ 0 ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - in silk_noise_shape_analysis_FIX()
300 …HarmBoost_Q16 = silk_SMULWB( silk_SMULWB( SILK_FIX_CONST( 1.0, 17 ) - silk_LSHIFT( psEncCtrl->codi… in silk_noise_shape_analysis_FIX()
305 …SILK_FIX_CONST( 1.0, 16 ) - silk_LSHIFT( psEncCtrl->input_quality_Q14, 2 ), SILK_FIX_CONST( LOW_IN… in silk_noise_shape_analysis_FIX()
310 …SILK_FIX_CONST( 1.0, 16 ) - silk_SMULWB( SILK_FIX_CONST( 1.0, 18 ) - silk_LSHIFT( psEncCtrl->codin… in silk_noise_shape_analysis_FIX()
314 HarmShapeGain_Q16 = silk_SMULWB( silk_LSHIFT( HarmShapeGain_Q16, 1 ), in silk_noise_shape_analysis_FIX()
315 silk_SQRT_APPROX( silk_LSHIFT( psEnc->LTPCorr_Q15, 15 ) ) ); in silk_noise_shape_analysis_FIX()
/external/libopus/silk/fixed/
Dk2a_FIX.c49 A_Q24[ n ] = silk_SMLAWB( tmp1, silk_LSHIFT( tmp2, 1 ), rc ); in silk_k2a()
50 A_Q24[ k - n - 1 ] = silk_SMLAWB( tmp2, silk_LSHIFT( tmp1, 1 ), rc ); in silk_k2a()
52 A_Q24[ k ] = -silk_LSHIFT( (opus_int32)rc_Q15[ k ], 9 ); in silk_k2a()
Dschur_FIX.c62 C[ k ][ 0 ] = C[ k ][ 1 ] = silk_LSHIFT( c[ k ], lz ); in silk_schur()
96 C[ n + k + 1 ][ 0 ] = silk_SMLAWB( Ctmp1, silk_LSHIFT( Ctmp2, 1 ), rc_tmp_Q15 ); in silk_schur()
97 C[ n ][ 1 ] = silk_SMLAWB( Ctmp2, silk_LSHIFT( Ctmp1, 1 ), rc_tmp_Q15 ); in silk_schur()
Dnoise_shape_analysis_FIX.c179 b_Q8 = silk_SMULWB( silk_LSHIFT( b_Q8, 8 ), b_Q8 ); in silk_noise_shape_analysis_FIX()
204 nSamples = silk_LSHIFT( psEnc->sCmn.fs_kHz, 1 ); in silk_noise_shape_analysis_FIX()
358 …psEncCtrl->LF_shp_Q14[ k ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - silk_SMULWB( streng… in silk_noise_shape_analysis_FIX()
368 psEncCtrl->LF_shp_Q14[ 0 ] = silk_LSHIFT( SILK_FIX_CONST( 1.0, 14 ) - b_Q14 - in silk_noise_shape_analysis_FIX()
383 …SILK_FIX_CONST( 1.0, 16 ) - silk_SMULWB( SILK_FIX_CONST( 1.0, 18 ) - silk_LSHIFT( psEncCtrl->codin… in silk_noise_shape_analysis_FIX()
387 HarmShapeGain_Q16 = silk_SMULWB( silk_LSHIFT( HarmShapeGain_Q16, 1 ), in silk_noise_shape_analysis_FIX()
388 silk_SQRT_APPROX( silk_LSHIFT( psEnc->LTPCorr_Q15, 15 ) ) ); in silk_noise_shape_analysis_FIX()
Dpitch_analysis_core_FIX.c188 target_ptr = &frame_4kHz[ silk_LSHIFT( SF_LENGTH_4KHZ, 2 ) ]; in silk_pitch_analysis_core()
238 … sum = silk_SMLAWB( sum, sum, silk_LSHIFT( -i, 4 ) ); /* Q14 */ in silk_pitch_analysis_core()
244 … sum = silk_LSHIFT( (opus_int32)C[ i - MIN_LAG_4KHZ ], 1 ); /* Q14 */ in silk_pitch_analysis_core()
245 … sum = silk_SMLAWB( sum, sum, silk_LSHIFT( -i, 4 ) ); /* Q14 */ in silk_pitch_analysis_core()
271 d_srch[ i ] = silk_LSHIFT( d_srch[ i ] + MIN_LAG_4KHZ, 1 ); in silk_pitch_analysis_core()
366 prevLag = silk_DIV32_16( silk_LSHIFT( prevLag, 1 ), 3 ); in silk_pitch_analysis_core()
454 *LTPCorr_Q15 = (opus_int)silk_LSHIFT( silk_DIV32_16( CCmax, nb_subfr ), 2 ); in silk_pitch_analysis_core()
466 lag = silk_LSHIFT( lag, 1 ); in silk_pitch_analysis_core()
608 target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; /* Pointer to middle of frame */ in silk_P_Ana_calc_corr_st3()
679 target_ptr = &frame[ silk_LSHIFT( sf_length, 2 ) ]; in silk_P_Ana_calc_energy_st3()
Dfind_pitch_lags_FIX.c80 …silk_memcpy( Wsig_ptr, x_ptr, ( psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pit… in silk_find_pitch_lags_FIX()
83 Wsig_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
84 x_ptr += psEnc->sCmn.pitch_LPC_win_length - silk_LSHIFT( psEnc->sCmn.la_pitch, 1 ); in silk_find_pitch_lags_FIX()
/external/libopus/silk/x86/
DVQ_WMat_EC_sse.c65 diff_Q14[ 0 ] = in_Q14[ 0 ] - silk_LSHIFT( cb_row_Q7[ 0 ], 7 ); in silk_VQ_WMat_EC_sse4_1()
109 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC_sse4_1()
116 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC_sse4_1()
122 sum2_Q16 = silk_LSHIFT( sum2_Q16, 1 ); in silk_VQ_WMat_EC_sse4_1()
/external/libopus/silk/fixed/x86/
Dprefilter_FIX_sse.c115 … res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( ( 5 + sum ), 9); in silk_warped_LPC_analysis_filter_FIX_sse4_1()
123 … state_0123 = _mm_alignr_epi8( _mm_cvtsi32_si128( silk_LSHIFT( input[ n ], 14 ) ), state_0123, 4 ); in silk_warped_LPC_analysis_filter_FIX_sse4_1()
139 state[ 0 ] = silk_LSHIFT( input[ n ], 14 ); in silk_warped_LPC_analysis_filter_FIX_sse4_1()
158 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX_sse4_1()
/external/libopus/silk/mips/
DNSQ_del_dec_mipsr1.h136 LTP_pred_Q14 = silk_LSHIFT( LTP_pred_Q14, 1 ); /* Q13 -> Q14 */ in silk_noise_shape_quantizer_del_dec()
188 … LPC_pred_Q14 = silk_LSHIFT( LPC_pred_Q14, 4 ); /* Q10 -> Q14 */ in silk_noise_shape_quantizer_del_dec()
220 … n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 1 ); /* Q11 -> Q12 */ in silk_noise_shape_quantizer_del_dec()
222 … n_AR_Q14 = silk_LSHIFT( n_AR_Q14, 2 ); /* Q12 -> Q14 */ in silk_noise_shape_quantizer_del_dec()
226 … n_LF_Q14 = silk_LSHIFT( n_LF_Q14, 2 ); /* Q12 -> Q14 */ in silk_noise_shape_quantizer_del_dec()
247 q1_Q10 = silk_SUB32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); in silk_noise_shape_quantizer_del_dec()
263 q1_Q10 = silk_ADD32( silk_LSHIFT( q1_Q0, 10 ), QUANT_LEVEL_ADJUST_Q10 ); in silk_noise_shape_quantizer_del_dec()

123