Commit 7cca9b93 authored by multrus's avatar multrus
Browse files

[cleanup] accept FIX_1474_USAN_TRANS_INV

parent 8752c7dc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -86,7 +86,6 @@
#define TMP_1342_WORKAROUND_DEC_FLUSH_BROKEN_IN_SR      /* FhG: Temporary workaround for incorrect implementation of decoder flush with split rendering */
#define NONBE_1122_KEEP_EVS_MODE_UNCHANGED              /* FhG: Disables fix for issue 1122 in EVS mode to keep BE tests green. This switch should be removed once the 1122 fix is added to EVS via a CR.  */
#define FIX_1904_HARM_GSC_ENC                           /* VA: #1904 Harmonization of EVS and IVAS GSC code */
#define FIX_1474_USAN_TRANS_INV                         /* Eri: Float issue 1474: Fix USAN out-of-bounds warning. No OOB occurs, but the pointer is set to point to uninitialized memory. */
#define FIX_2268_OOB_INDEXING_IN_IFFT                   /* VA: Fix for issue 2268, to silence clang18 */
#define FIX_2271_OOB_INDEXING_IN_PIT_OL2                /* VA: Fix for issue 2271, to silence clang18 */
#define FIX_2273_OOB_INDEXING_IN_PIT_FR4                /* VA: Fix to silence clang on ptr init */
+0 −15
Original line number Diff line number Diff line
@@ -76,20 +76,13 @@ void direct_transform_fx(
            move32();
        }

#ifndef FIX_1474_USAN_TRANS_INV
        iseg_fx = &in32_r16_fx[-segment_length4]; /*Q*/
#endif
        oseg_fx = out32_fx; /*Q*/

        wh_fx = &win_fx[segment_length4]; /*Q15*/
        wl_fx = wh_fx - 1;                /*Q15*/

        shift = extract_l( L_mult0( 3, segment_length4 ) ); /*Q0*/
#ifdef FIX_1474_USAN_TRANS_INV
        sh_fx = &in32_r16_fx[segment_length2]; /*Q*/
#else
        sh_fx = &iseg_fx[shift];                    /*Q*/
#endif
        sl_fx2 = sh_fx - 1; /*Q*/


@@ -100,11 +93,7 @@ void direct_transform_fx(
            move32();
        }

#ifdef FIX_1474_USAN_TRANS_INV
        sl_fx2 = &in32_r16_fx[( segment_length4 - 1 )]; /*Q*/
#else
        sl_fx2 = &iseg_fx[( segment_length2 - 1 )]; /*Q*/
#endif

        FOR( i = segment_length4; i < segment_length2; i++ )
        {
@@ -117,11 +106,7 @@ void direct_transform_fx(
        edct_fx( dctin32_fx, oseg_fx, segment_length2, &Qs[0] );
        Qmin = s_min( Qs[0], Qmin );

#ifdef FIX_1474_USAN_TRANS_INV
        iseg_fx = &in32_r16_fx[segment_length4];
#else
        iseg_fx += segment_length2;
#endif
        oseg_fx += segment_length2;

        FOR( seg = 1; seg < NUM_TIME_SWITCHING_BLOCKS - 1; seg++ )
+0 −16
Original line number Diff line number Diff line
@@ -1032,11 +1032,7 @@ void Inverse_Transform(
            }
        }

#ifdef FIX_1474_USAN_TRANS_INV
        out_segment = out_alias;
#else
        out_segment = out_alias - segment_length_div4;
#endif
        in_segment = in_mdct_modif; /*Q*/

        tmp = *Q;
@@ -1055,11 +1051,7 @@ void Inverse_Transform(

        FOR( ta = segment_length_div4; ta < segment_length_div2; ta++ )
        {
#ifdef FIX_1474_USAN_TRANS_INV
            *out_segment++ = L_shr( alias[ta], tmp ); /*q_out*/
#else
            out_segment[ta] = L_shr( alias[ta], tmp );                        /*q_out*/
#endif
            move32();
        }
        /* This previous loop fills the output buffer from [0..seg_len_div4-1] */
@@ -1067,20 +1059,12 @@ void Inverse_Transform(
        win2 = &win[segment_length_div2]; /*Q15*/
        FOR( ta = segment_length_div2; ta < segment_length; ta++ )
        {
#ifdef FIX_1474_USAN_TRANS_INV
            *out_segment++ = L_shr( Mult_32_16( alias[ta], *--win2 ), tmp ); /*q_out*/
#else
            out_segment[ta] = L_shr( Mult_32_16( alias[ta], *--win2 ), tmp ); /*q_out*/
#endif
            move32();
        }
        /* This previous loop fills the output buffer from [seg_len_div4..seg_len-seg_len_div4-1] */

#ifdef FIX_1474_USAN_TRANS_INV
        out_segment = &out_alias[segment_length_div4]; /*q_out*/
#else
        out_segment += segment_length_div2;                                   /*q_out*/
#endif
        in_segment += segment_length_div2; /*Q*/

        FOR( seg = 1; seg < NUM_TIME_SWITCHING_BLOCKS - 1; seg++ )