Commit 291e9f96 authored by Jan Kiene's avatar Jan Kiene
Browse files

use saturated operator in GetF0

parent 29b454bb
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -565,7 +565,7 @@ static void GetF0(
        /**pF0 = nSamplesCore/tmpPitchLag;*/
        BASOP_Util_Divide_MantExp( nSamplesCore, 0, tmpPitchLag, -( 1 /*division by 2*/ + 4 /*accommodate accuracy-prevention-leftshift*/ ), pF0, &tmp ); /*pF0 is Q15*/
        move16();
        *pF0 = shr( *pF0, sub( 5, tmp ) ); /*Q10 without scalingfactor*/
        *pF0 = shr_sat( *pF0, sub( 5, tmp ) ); /*Q10 without scalingfactor*/
        move16();
        *pOrigF0 = *pF0; /*Q10*/
        move16();