Commit 3e9555a0 authored by multrus's avatar multrus Committed by Sandesh Venkatesh
Browse files

simplify set32_fx()

parent 35347cae
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
+9 −0
Original line number Diff line number Diff line
@@ -692,6 +692,14 @@ void set32_fx(
    const Word16 N  /* i  : Lenght of the vector                */
)
{
#ifdef FIX_1106_SIMPLIFY_SET32FX

    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 +718,7 @@ void set32_fx(
            move32();
        }
    }
#endif

    return;
}