Commit 176e2423 authored by thomas dettbarn's avatar thomas dettbarn
Browse files

moved one idiv1616 out of the for loops to gain even more wmops.

parent 111ed772
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -515,7 +515,11 @@ 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 */
    move16();
    FOR( i = 0; i < num_chans; i++ )
    {
        FOR( j = i; j < num_chans; j++ )
@@ -559,13 +563,10 @@ 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;

                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 */