Commit c45cd7c0 authored by thomas dettbarn's avatar thomas dettbarn
Browse files

moved the idiv1616 outside the for loop in ivas_band_cov_fx() to gain WMOPS.

parent 1cc587e9
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -515,7 +515,9 @@ static void ivas_band_cov_fx(
    Word64 cov_real_64bit[IVAS_SPAR_MAX_CH][IVAS_SPAR_MAX_CH][IVAS_MAX_NUM_BANDS];
    Word16 q_shift, q_shift_tmp;
    Word16 m, start_bin, active_bins;
    Word16 num_blocks;

    num_blocks = idiv1616( num_bins, stride ); /* Q0 */
    FOR( i = 0; i < num_chans; i++ )
    {
        FOR( j = i; j < num_chans; j++ )
@@ -559,13 +561,11 @@ static void ivas_band_cov_fx(
                Word64 temp;
                const Word32 *p_bin_to_band = pFb_bin_to_band[k]; // Q22
                Word32 *cov_ptr = pV_re;
                Word16 num_blocks;
                Word16 blk;
                move16();

                temp = 0;
                move64();
                num_blocks = idiv1616( num_bins, stride ); /* Q0 */
                move16();
                start_bin = pFb_start_bin_per_band[k]; /* Q0 */
                move16();
                active_bins = pFb_active_bins_per_band[k]; /* Q0 */