Commit 89c30a06 authored by vasilache's avatar vasilache
Browse files

fix 2433 add UWords 2

parent 2e366c5e
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -4667,14 +4667,14 @@ static Word16 encode_coherence_indexesDCT0_fx(
    {
        k = sub( k, 16 );
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
        hMetaData->ind_list[indice_coherence + i].value = u_extract_l( W_extract_l( W_shr( idx, k ) ) ); /*   ( ( idx >> k ) & 65535 );   16 bits */
        hMetaData->ind_list[indice_coherence + i].value = u_extract_l( (UWord32) W_extract_l( W_shr( idx, k ) ) ); /*   ( ( idx >> k ) & 65535 );  16 bits */
#else
        hMetaData->ind_list[indice_coherence + i].value = ( ( idx >> k ) & 65535 ); /* 16 bits */
        move16();
#endif
    }
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
    hMetaData->ind_list[indice_coherence + i].value = u_extract_l( L_and( W_extract_l( idx ), L_sub( L_shl( 1, k ), 1 ) ) ); /* ( idx & ( ( 1 << k ) - 1 ) ); */
    hMetaData->ind_list[indice_coherence + i].value = u_extract_l( (UWord32) L_and( W_extract_l( idx ), L_sub( L_shl( 1, k ), 1 ) ) ); /* ( idx & ( ( 1 << k ) - 1 ) ); */
#else
    hMetaData->ind_list[indice_coherence + i].value = ( idx & ( ( 1 << k ) - 1 ) );
    move16();
@@ -4701,14 +4701,14 @@ static Word16 encode_coherence_indexesDCT0_fx(
        {
            k = sub( k, 16 );
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
            hMetaData->ind_list[indice_coherence + j].value = u_extract_l( W_extract_l( W_shr( idx1, k ) ) ); /*   ( ( idx1 >> k ) & 65535 );   16 bits */
            hMetaData->ind_list[indice_coherence + j].value = u_extract_l( (UWord32) W_extract_l( W_shr( idx1, k ) ) ); /*   ( ( idx1 >> k ) & 65535 );   16 bits */
#else
            hMetaData->ind_list[indice_coherence + j].value = ( ( idx1 >> k ) & 65535 ); /* 16 bits */
            move16();
#endif
        }
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
        hMetaData->ind_list[indice_coherence + j].value = u_extract_l( L_and( W_extract_l( idx1 ), L_sub( L_shl( 1, k ), 1 ) ) ); /* ( idx1 & ( ( 1 << k ) - 1 ) ); */
        hMetaData->ind_list[indice_coherence + j].value = u_extract_l( (UWord32) L_and( W_extract_l( idx1 ), L_sub( L_shl( 1, k ), 1 ) ) ); /* ( idx1 & ( ( 1 << k ) - 1 ) ); */
#else
        hMetaData->ind_list[indice_coherence + j].value = ( idx1 & ( ( 1 << k ) - 1 ) );
        move16();
@@ -4989,13 +4989,13 @@ static Word16 encode_spread_coherence_1sf_fx(
        {
            k = sub( k, 16 );
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
            push_next_indice( hMasaMetaData, u_extract_l( W_extract_l( W_shr( idx, k ) ) ), 16 ); /*  ( ( idx >> k ) & 65535 );   16 bits */
            push_next_indice( hMasaMetaData, u_extract_l( (UWord32) W_extract_l( W_shr( idx, k ) ) ), 16 ); /*  ( ( idx >> k ) & 65535 );   16 bits */
#else
            push_next_indice( hMasaMetaData, ( ( idx >> k ) & 65535 ), 16 ); /* 16 bits */
#endif
        }
#ifdef FIX_2433_ARITH_OVERFLOW_IN_QMETA_ENC
        push_next_indice( hMasaMetaData, u_extract_l( L_and( W_extract_l( idx ), L_sub( L_shl( 1, k ), 1 ) ) ), k ); /* ( idx & ( ( 1 << k ) - 1 ) ); */
        push_next_indice( hMasaMetaData, u_extract_l( (UWord32) L_and( W_extract_l( idx ), L_sub( L_shl( 1, k ), 1 ) ) ), k ); /* ( idx & ( ( 1 << k ) - 1 ) ); */
#else
        push_next_indice( hMasaMetaData, ( idx & ( ( 1 << k ) - 1 ) ), k );
#endif