Commit 2ae408f7 authored by vaillancour's avatar vaillancour
Browse files

add 1 BE complexity reduction in pred_lt4

parent a115213c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -58,9 +58,13 @@ void pred_lt4_ivas_fx(
            FOR( i = 0; i < nb_coef; i++ )
            {
                /*s += (*x1--) * (*c1) + (*x2++) * (*c2);*/
#ifdef IMPROV_COMPLEX_BE
                s64 = W_mac_32_16( s64, ( *c1 ), *x1-- ); /* Q_exc + Q32 */
                s64 = W_mac_32_16( s64, ( *c2 ), *x2++ ); /* Q_exc + Q32 */
#else
                s64 = W_mac_32_32( s64, L_deposit_l( *x1-- ), ( *c1 ) ); /* Q_exc + Q32 */
                s64 = W_mac_32_32( s64, L_deposit_l( *x2++ ), ( *c2 ) ); /* Q_exc + Q32 */

#endif
                c1 += up_sample;
                c2 += up_sample;
            }