Loading lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -95,4 +95,5 @@ #define FIX_1103_OPT_L_NORM_ARR /* FhG: Optimize L_norm_arr(), avoid IF */ #define FIX_1105_OPT_MINIMUM_SL /* FhG: Optimize minimum_s(), minimum_l(), avoid IF */ #define FIX_1104_OPT_GETMINSCALEFAC /* FhG: Optimize get_min_scalefactor(), avoid IF */ #define FIX_1106_SIMPLIFY_SET32FX /* FhG: simplify set32_fx() */ #endif lib_com/tools_fx.c +10 −0 Original line number Diff line number Diff line Loading @@ -692,6 +692,15 @@ void set32_fx( const Word16 N /* i : Lenght of the vector */ ) { #ifdef FIX_1106_SIMPLIFY_SET32FX Word16 i; FOR( i = 0; i < N; i++ ) { y[i] = a; move32(); } #else Word16 i, tmp; tmp = extract_l( a ); IF( EQ_32( L_deposit_l( tmp ), a ) ) Loading @@ -710,6 +719,7 @@ void set32_fx( move32(); } } #endif return; } Loading Loading
lib_com/options.h +1 −0 Original line number Diff line number Diff line Loading @@ -95,4 +95,5 @@ #define FIX_1103_OPT_L_NORM_ARR /* FhG: Optimize L_norm_arr(), avoid IF */ #define FIX_1105_OPT_MINIMUM_SL /* FhG: Optimize minimum_s(), minimum_l(), avoid IF */ #define FIX_1104_OPT_GETMINSCALEFAC /* FhG: Optimize get_min_scalefactor(), avoid IF */ #define FIX_1106_SIMPLIFY_SET32FX /* FhG: simplify set32_fx() */ #endif
lib_com/tools_fx.c +10 −0 Original line number Diff line number Diff line Loading @@ -692,6 +692,15 @@ void set32_fx( const Word16 N /* i : Lenght of the vector */ ) { #ifdef FIX_1106_SIMPLIFY_SET32FX Word16 i; FOR( i = 0; i < N; i++ ) { y[i] = a; move32(); } #else Word16 i, tmp; tmp = extract_l( a ); IF( EQ_32( L_deposit_l( tmp ), a ) ) Loading @@ -710,6 +719,7 @@ void set32_fx( move32(); } } #endif return; } Loading