Commit b6e4d62b authored by Sandesh Venkatesh's avatar Sandesh Venkatesh
Browse files

LTV testing for optimizations

parent ccb4b561
Loading
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -747,6 +747,7 @@ Word16 getScaleFactor32( /* o: measured headroom in range [
                         const Word32 *x,     /* i: array containing 32-bit data */
                         const Word16 len_x ) /* i: length of the array to scan  */
{
#if 1
    Word16 i, i_min, i_max;
    Word32 x_min, x_max;

@@ -778,6 +779,28 @@ Word16 getScaleFactor32( /* o: measured headroom in range [


    return i;
#else
    Word16 q = 32;
    move16();
    Word16 i;

    FOR( i = 0; i < len_x; i++ )
    {
        Word16 q_tst;

        q_tst = norm_l( x[i] );
        if ( x[i] != 0 )
        {
            q = s_min( q, q_tst );
        }
    }
    IF( sub( 32, q ) == 0 )
    {
        q = 0;
    }
    return q;

#endif
}

Word16 getScaleFactor32_copy(                      /* o: measured headroom in range [0..31], 0 if all x[i] == 0 */
+27 −0
Original line number Diff line number Diff line
@@ -1314,6 +1314,18 @@ Word16 matrix_diag_product_fx(
    Word32 *Z,             /* o  : resulting matrix after the matrix multiplication                                       */
    Word16 *Z_e );

Word16 matrix_diag_product_fx_2(
    const Word32 *X, /* i  : left hand matrix                                                                       Q31 - X_e*/
    const Word16 X_e,
    const Word16 rowsX,   /* i  : number of rows of the left hand matrix                                                 Q0*/
    const Word16 colsX,   /* i  : number of columns of the left hand matrix                                              Q0*/
    const Word16 transpX, /* i  : flag indicating the transposition of the left hand matrix prior to the multiplication  Q0*/
    const Word32 *Y,      /* i  : right hand diagonal matrix as vector containing the diagonal elements                  Q31 - Y_e*/
    const Word16 *Y_e,
    const Word16 entriesY, /* i  : number of entries in the diagonal                                                      Q0*/
    Word32 *Z,             /* o  : resulting matrix after the matrix multiplication                                       Q31 - Z_e*/
    Word16 *Z_e );

Word16 matrix_diag_product_fx_1(
    const Word32 *X, /* i  : left hand matrix                                                                       */
    const Word16 *X_e,
@@ -5073,6 +5085,21 @@ Word16 matrix_product_mant_exp_fx(
    Word16 *Z_fx_e        /* o  : resulting matrix after the matrix multiplication                                       */
);

Word16 matrix_product_mant_exp_e(
    const Word32 *X_fx,   /* i  : left hand matrix                                                                       Q31 - X_fx_e*/
    const Word16 X_fx_e,  /* i  : left hand matrix                                                                       */
    const Word16 rowsX,   /* i  : number of rows of the left hand matrix                                                 Q0*/
    const Word16 colsX,   /* i  : number of columns of the left hand matrix                                              Q0*/
    const Word16 transpX, /* i  : flag indicating the transposition of the left hand matrix prior to the multiplication  Q0*/
    const Word32 *Y_fx,   /* i  : right hand matrix                                                                      Q31 - Y_fx_e*/
    const Word16 Y_fx_e,  /* i  : right hand matrix                                                                      */
    const Word16 rowsY,   /* i  : number of rows of the right hand matrix                                                Q0*/
    const Word16 colsY,   /* i  : number of columns of the right hand matrix                                             Q0*/
    const Word16 transpY, /* i  : flag indicating the transposition of the right hand matrix prior to the multiplication Q0*/
    Word32 *Z_fx,         /* o  : resulting matrix after the matrix multiplication                                       Q31 - Z_fx_e*/
    Word16 *Z_fx_e        /* o  : resulting matrix after the matrix multiplication                                       */
);

Word16 matrix_product_fx(
    const Word32 *X_fx,   /* i  : left hand matrix                                                                       */
    const Word16 rowsX,   /* i  : number of rows of the left hand matrix                                                 */
+295 −45

File changed.

Preview size limit exceeded, changes collapsed.

+28 −31

File changed.

Preview size limit exceeded, changes collapsed.

+82 −87

File changed.

Preview size limit exceeded, changes collapsed.

Loading