Commit 8cc2bdb6 authored by vaillancour's avatar vaillancour
Browse files

addition on 1 line that was different from fixed point, this change doesn't...

addition on 1 line that was different from fixed point, this change doesn't affect self_test results
parent 21b5d7e3
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1049,7 +1049,8 @@ static Word16 Find_bit_alloc_IVAS_int( /*o: Number
        nb_bands_adj = L_sub( Mpy_32_32( Q31_0_02, L_shl( SWB_bit_budget, 18 ) ), Q18_1_2 ); // Q18
    }
    /*nb_bands_max = (int16_t)(nb_bands_max * nb_bands_adj + 0.5f);*/
    nb_bands_max = (Word16) L_shr_r( nb_bands_max * nb_bands_adj, 18 ); /* Q0 */ ///################################

    nb_bands_max = round_fx( Mpy_32_16_1( L_shl( nb_bands_adj, 5 ), shl( nb_bands_max, 10 - 2 ) ) ); /* Q0 */
    nb_bands_max = check_bounds_s( nb_bands_max, 5, nb_tot_bands_in );

    /* bit_fracf *= SWB_bit_budget;*/