Commit dc2facf9 authored by malenov's avatar malenov Committed by Sandesh Venkatesh
Browse files

fix incorrect counting of complexity in the shr_ro() function

parent f6c6ffab
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -410,12 +410,16 @@ Word16 shl_r( Word16 var1, Word16 var2 )
        var_out = shr_r( var1, var2 );
#endif
#ifdef WMOPS
#ifndef FIX_1049_SHR_RO_COMPLEXITY
        multiCounter[currCounter].shr_r--;
#endif
#endif /* ifdef WMOPS */
    }

#ifdef WMOPS
#ifndef FIX_1049_SHR_RO_COMPLEXITY
    multiCounter[currCounter].shl_r++;
#endif
#endif /* ifdef WMOPS */

    return ( var_out );
+1 −0
Original line number Diff line number Diff line
@@ -85,4 +85,5 @@
#define FIX_ISSUE_1062_AND_1068_TON_ENE_EST_FX
#define FIX_1054_IF_ELSE_CMPLX                          /* VA: Fix 1054 incorrect counting of complexity when ELSE-IF sequence is encoutered in two functions */
#define FIX_1052_COPY_CMPLX_DISCREPANCY       /* VA: modify IF-ELSE statements used in Copy*() functions to avoid dependency on x[] and y[] in RAM */
#define FIX_1049_SHR_RO_COMPLEXITY              /* VA: fix for issue 1049: incorrect counting of complexity in the shr_ro() function */
#endif