Commit 898f904c authored by Jonas Svedberg's avatar Jonas Svedberg
Browse files

cleaned up comments , removed manual instrumentation

parent 79c618cb
Loading
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -1092,13 +1092,8 @@ static void subst_spec(

        Xph = corr_phase[m];
#ifdef FIX_1002_DEC_PHASE_ECU_USAN_OF_PHASE
        /* BE , but with maintained dual mult of a constant,  mask the  10 bits in Word32, truncation  */
#define WMC_TOOL_SKIP
        /* extract fractional phase integer index in the range [0...1023] */
        Xph_short = (int16_t) ( 0x000003ff & (int32_t) ( ( Xph * 512 ) / EVS_PI ) );
        MULT( 2 );  /* mult with constant, twice due to legacy precedence use */
        LOGIC( 1 ); /* L_and        */
        MISC( 1 );  /* extract_l   */
#undef WMC_TOOL_SKIP
#else
        Xph_short = (int16_t) ( ( (int32_t) ( Xph * 512 / EVS_PI ) ) % 32768 ) & 0x03ff;
#endif
@@ -1148,12 +1143,7 @@ static void subst_spec(
                }

#ifdef FIX_1002_DEC_PHASE_ECU_USAN_OF_PHASE
#define WMC_TOOL_SKIP
                Xph_short = (int16_t) ( ( (int32_t) ( ( Xph * 512 ) / EVS_PI ) ) & 0x000003ff );
                MULT( 2 );  /* mult with constant, twice due to legacy precedence  */
                LOGIC( 1 ); /* L_and        */
                MISC( 1 );  /* extract_l   */
#undef WMC_TOOL_SKIP
#else
                Xph_short = (int16_t) ( Xph * 512 / EVS_PI ) & 0x03ff;
#endif