Commit bce58b11 authored by Fabian Bauer's avatar Fabian Bauer
Browse files

asserts change

parent 45c49362
Loading
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -137,15 +137,14 @@ 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 ); FAILS
        // assert( op1 <= 0 ); FAILS --> twoway needed
        assert( op1 >= 0 );
        if ( op1 >= 0 )
        {
            cc = shl_sat( cc, add( normXY, normCC ) );
            cc = shl_sat( cc, op1 );
        }
        else
        {
            cc = shr_r( cc, negate( add( normXY, normCC ) ) );
            cc = shr_r( cc, negate( op1 ) );
        }
#else
        Flag Overflow;