Commit 3187b18a authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

Merge branch '1106-complexity-simplify-set32_fx' into 'main'

Resolve "[Complexity] Simplify set32_fx()"

Closes #1106

See merge request !877
parents 35347cae 091ea674
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+10 −0
Original line number Diff line number Diff line
@@ -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 ) )
@@ -710,6 +719,7 @@ void set32_fx(
            move32();
        }
    }
#endif

    return;
}