Commit 62ed3e17 authored by vasilache's avatar vasilache
Browse files

change assert on nbits

parent acbf95da
Loading
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -4665,8 +4665,8 @@ static Word16 encode_coherence_indexesDCT0_fx(
    move16();
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
    /* verify that idx and idx1 can be represented on 63 bits as it has been designed through split outside this function */
    assert( idx < ( 1 << 62 ) );
    assert( idx1 < ( 1 << 62 ) );
    assert( nbits < 63 );
    assert( nbits1 < 63 );
#endif
    FOR( i = 0; i < no_idx16 - 1; i++ )
    {
@@ -4989,8 +4989,8 @@ static Word16 encode_spread_coherence_1sf_fx(

#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
        /* verify that idx and idx1 can be represented on 63 bits as it has been designed through split outside this function */
        assert( idx < ( 1 << 62 ) );
        assert( idx1 < ( 1 << 62 ) );
        assert( nbits_fr < 63 );
        assert( nbits_fr1 < 63 );
#endif
        /* write combined index */
        k = nbits_fr;
@@ -5235,8 +5235,8 @@ static Word16 encode_surround_coherence_fx(

#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
            /* verify that idx and idx1 can be represented on 63 bits as it has been designed through split outside this function */
            assert( idx < ( 1 << 62 ) );
            assert( idx1 < ( 1 << 62 ) );
            assert( nbits_fr < 63 );
            assert( nbits_fr1 < 63 );
#endif

            /* write combined index */
@@ -5484,8 +5484,8 @@ static Word16 encode_surround_coherence_hr_fx(

#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
                    /* verify that idx and idx1 can be represented on 63 bits as it has been designed through split outside this function */
                    assert( idx < ( 1 << 62 ) );
                    assert( idx1 < ( 1 << 62 ) );
                    assert( nbits_fr < 63 );
                    assert( nbits_fr1 < 63 );
#endif

                    /* write combined index */