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

more specific assert

parent 0f6c32ba
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1244,7 +1244,16 @@ Word16 maximum_exp_fx( /* o : index of the maximum value
        }
#else
        // insert assert to find critical bitstreams
        assert( tmp != (Word16) 0x7FFF );
        {
            Word16 tmp16, tmp16_1;
            Word32 tmp32, tmp32_1;
            tmp16 = tmp;
            tmp32 = L_deposit_l( tmp );
            tmp16_1 = shr_sat( vec_fx[j], sub( exp, exp_vec[j] ) );
            tmp32_1 = L_shr_sat( L_deposit_l(vec_fx[j]), sub( exp, exp_vec[j] ) );

            assert( LT_16( tmp16, tmp16_1 ) == LT_32( tmp32, tmp32_1 ) );
        }

        IF( LT_16( tmp, shr_sat( vec_fx[j], sub( exp, exp_vec[j] ) ) ) )
        {