Loading lib_dec/FEC_HQ_phase_ecu.c +1 −11 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading Loading
lib_dec/FEC_HQ_phase_ecu.c +1 −11 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading