Commit facd5678 authored by Arash Azizi's avatar Arash Azizi
Browse files

issue: 2446 Replacing (L_mac_sat, L_mac) and (mac_r_sat, mac_r) in EVS_MONO case

parent 0c791a34
Loading
Loading
Loading
Loading
Loading
+62 −9
Original line number Diff line number Diff line
@@ -1251,6 +1251,7 @@ void con_tcx_ivas_fx(
            {
                FOR( i = 0; i < Tc; i++ )
                {
#ifndef HARMONIZE_2446_CON_TCX_FX
                    *pt_exc++ = mac_r( L_mac( L_mac( L_mac( L_mac( L_mac( L_mac( L_mac( L_mac( L_mac(
                                                                                                   L_mult( 174 /* 0.0053f Q15*/, pt1_exc[-5] ),
                                                                                                   0 /* 0.0000f Q15*/, pt1_exc[-4] ),
@@ -1263,6 +1264,37 @@ void con_tcx_ivas_fx(
                                                     -1442 /*-0.0440f Q15*/, pt1_exc[3] ),
                                              0 /* 0.0000f Q15*/, pt1_exc[4] ),
                                       174 /* 0.0053f Q15*/, pt1_exc[5] ); /*Q_exc*/
#else               
                    IF(NE_32(st->element_mode, EVS_MONO)){
                        *pt_exc++ = mac_r(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(
                            L_mult(174 /* 0.0053f Q15*/, pt1_exc[-5]),
                            0 /* 0.0000f Q15*/, pt1_exc[-4]),
                            -1442 /*-0.0440f Q15*/, pt1_exc[-3]),
                            0 /* 0.0000f Q15*/, pt1_exc[-2]),
                            8641 /* 0.2637f Q15*/, pt1_exc[-1]),
                            18022 /* 0.5500f Q15*/, pt1_exc[0]),
                            8641 /* 0.2637f Q15*/, pt1_exc[1]),
                            0 /* 0.0000f Q15*/, pt1_exc[2]),
                            -1442 /*-0.0440f Q15*/, pt1_exc[3]),
                            0 /* 0.0000f Q15*/, pt1_exc[4]),
                            174 /* 0.0053f Q15*/, pt1_exc[5]); /*Q_exc*/
                    }
                    ELSE{
                        *pt_exc++ = mac_r_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(
                            L_mult(174 /* 0.0053f Q15*/, pt1_exc[-5]),
                            0 /* 0.0000f Q15*/, pt1_exc[-4]),
                            -1442 /*-0.0440f Q15*/, pt1_exc[-3]),
                            0 /* 0.0000f Q15*/, pt1_exc[-2]),
                            8641 /* 0.2637f Q15*/, pt1_exc[-1]),
                            18022 /* 0.5500f Q15*/, pt1_exc[0]),
                            8641 /* 0.2637f Q15*/, pt1_exc[1]),
                            0 /* 0.0000f Q15*/, pt1_exc[2]),
                            -1442 /*-0.0440f Q15*/, pt1_exc[3]),
                            0 /* 0.0000f Q15*/, pt1_exc[4]),
                            174 /* 0.0053f Q15*/, pt1_exc[5]); /*Q_exc*/
                    }
                    
#endif // !HARMONIZE_2446_CON_TCX_FX
                    move16();
                    pt1_exc++;
                }
@@ -1271,6 +1303,10 @@ void con_tcx_ivas_fx(
            {
                FOR( i = 0; i < Tc; i++ )
                {
#ifndef HARMONIZE_2446_CON_TCX_FX

#else
                IF(NE_32(st->element_mode, EVS_MONO)) {
                                        *pt_exc++ = mac_r(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(L_mac(
                                                                                                   L_mult(-174 /*-0.0053f Q15*/, pt1_exc[-5]),
                                                                                                   -121 /*-0.0037f Q15*/, pt1_exc[-4]),
@@ -1283,6 +1319,23 @@ void con_tcx_ivas_fx(
                                                     -459 /*-0.0140f Q15*/, pt1_exc[3] ),
                                              -121 /*-0.0037f Q15*/, pt1_exc[4] ),
                                       -174 /*-0.0053f Q15*/, pt1_exc[5] ); /*Q_exc*/
                }
                ELSE{
                    *pt_exc++ = mac_r_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(L_mac_sat(
                    L_mult(-174 /*-0.0053f Q15*/, pt1_exc[-5]),
                    -121 /*-0.0037f Q15*/, pt1_exc[-4]),
                    -459 /*-0.0140f Q15*/, pt1_exc[-3]),
                    590 /* 0.0180f Q15*/, pt1_exc[-2]),
                    8743 /* 0.2668f Q15*/, pt1_exc[-1]),
                    16355 /* 0.4991f Q15*/, pt1_exc[0]),
                    8743 /* 0.2668f Q15*/, pt1_exc[1]),
                    590 /* 0.0180f Q15*/, pt1_exc[2]),
                    -459 /*-0.0140f Q15*/, pt1_exc[3]),
                    -121 /*-0.0037f Q15*/, pt1_exc[4]),
                    -174 /*-0.0053f Q15*/, pt1_exc[5]); /*Q_exc*/
                }
                
#endif // !HARMONIZE_2446_CON_TCX_FX
                    move16();
                    pt1_exc++;
                }
+1 −1

File changed.

Contains only whitespace changes.