Commit 790edf5f authored by Fabian Bauer's avatar Fabian Bauer
Browse files

compensate shift

parent 05563721
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1186,7 +1186,7 @@ Word16 cng_energy_fx(
    const Word16 *pt_res;
    Word32 L_ener, L_tmp;
#ifdef HARMONIZE_2539_cng_energy
    Word64 W_ener = W_neg( W_deposit32_h( 1 ) );
    Word64 W_ener = W_neg( W_deposit32_h( L_shr( 1, 1 ) ) );
    move64();
#endif

@@ -1234,7 +1234,7 @@ Word16 cng_energy_fx(
        }
    }
#ifdef HARMONIZE_2539_cng_energy
    L_ener = L_negate( W_extract_h( W_ener ) );
    L_ener = L_shl( L_negate( W_extract_h( W_ener ) ), 1 );
#endif
    hi = norm_l( L_ener );
    lo = Log2_norm_lc( L_shl( L_ener, hi ) );