Home
last modified time | relevance | path

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

/external/libopus/silk/fixed/
Dprocess_gains_FIX.c44 opus_int32 s_Q16, InvMaxSqrVal_Q16, gain, gain_squared, ResNrg, ResNrgPart, quant_offset_Q10; in silk_process_gains_FIX() local
74 gain_squared = silk_ADD_SAT32( ResNrgPart, silk_SMMUL( gain, gain ) ); in silk_process_gains_FIX()
75 if( gain_squared < silk_int16_MAX ) { in silk_process_gains_FIX()
77 gain_squared = silk_SMLAWW( silk_LSHIFT( ResNrgPart, 16 ), gain, gain ); in silk_process_gains_FIX()
78 silk_assert( gain_squared > 0 ); in silk_process_gains_FIX()
79 gain = silk_SQRT_APPROX( gain_squared ); /* Q8 */ in silk_process_gains_FIX()
83 gain = silk_SQRT_APPROX( gain_squared ); /* Q0 */ in silk_process_gains_FIX()