Commit 1079d508 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

check asserts for shl_ro : insert asserts for other direction

parent 1508027f
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -137,7 +137,8 @@ Word16 normalized_cross_correlation_self_fx( const Word16 *signal,
        BASOP_SATURATE_WARNING_OFF
#ifdef ISSUE_1751_replace_shl_ro
        Word16 op1 = add( normXY, normCC );
        assert( op1 >= 0 );
        // assert( op1 >= 0 ); FAILS
        assert( op1 <= 0 );
        if ( op1 >= 0 )
        {
            cc = shl_sat( cc, add( normXY, normCC ) );
+2 −1
Original line number Diff line number Diff line
@@ -4086,7 +4086,8 @@ void ivas_lfe_synth_with_filters_fx(
            lfeGain_fx_exp = add( sub( hMasaLfeSynth->transportEneSmooth_q, hMasaLfeSynth->targetEneLfeSmooth_q ), lfeGain_fx_exp );
            lfeGain_fx = Sqrt16( lfeGain_fx, &lfeGain_fx_exp ); // Q15-lfeGain_fx_exp
#ifdef ISSUE_1751_replace_shl_ro
            assert( lfeGain_fx_exp >= 0 );
            // assert( lfeGain_fx_exp >= 0 ); FAILS
            assert( lfeGain_fx_exp <= 0 );
            if ( lfeGain_fx_exp >= 0 )
            {
                lfeGain_fx = shl_sat( lfeGain_fx, lfeGain_fx_exp ); // Q15