Commit 431dbc32 authored by vaillancour's avatar vaillancour
Browse files

Fix part 6 of specific OV, only swb_bwe not addressed

parent e4d861ed
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -46,7 +46,11 @@ Word16 env_stability_fx( /* in Q15 */
            mem_norm[i] = ynrm[i];      move16();
        }
        Overflow = 0;   move16();
#ifdef BASOP_NOGLOB
        env_delta = shl_o(*mem_env_delta, 1, &Overflow);
#else
        env_delta = shl(*mem_env_delta, 1);
#endif
    }
    ELSE
    {
@@ -85,7 +89,11 @@ Word16 env_stability_fx( /* in Q15 */
        *mem_env_delta = round_fx(L_tmp);   /* Q12 */
        Overflow = 0;
        move16();
#ifdef BASOP_NOGLOB
        env_delta = round_fx_o(L_shl_o(L_tmp, 1, &Overflow), &Overflow);   /* Q13 */
#else
        env_delta = round_fx(L_shl(L_tmp, 1));   /* Q13 */
#endif
    }
    IF (Overflow != 0) /* Saturated due to the above up-shifting operation. */
    {