Commit 5c280909 authored by vaclav's avatar vaclav
Browse files

Merge branch 'fix_MSVC_build_with_DEBUG_MODE_INFO_activated' into 'main'

Fix msvc build with debug mode info activated

See merge request !451
parents 0bd2abcc 78b1a1e7
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@
#endif
#endif
#endif
#include "cnst.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
+20 −3
Original line number Diff line number Diff line
@@ -84,6 +84,23 @@ static float mem_synth_snr[MAX_INPUT_CHANNELS][M];
   here we do not want to include prot.h due to its dependencies
 *--------------------------------------------------------------------*/

static void set_f(
    float y[],      /* i/o: Vector to set               */
    const float a,  /* i  : Value to set the vector to  */
    const int16_t N /* i  : Lenght of the vector        */
)
{
    int16_t i;

    for ( i = 0; i < N; i++ )
    {
        y[i] = a;
    }

    return;
}


static float sum2_f(
    const float *vec,  /* i  : input vector             */
    const int16_t lvec /* i  : length of input vector   */
@@ -379,7 +396,7 @@ void snr_celp(
        noise2 = sum2_f( &noise[i], L_subfr ) + 0.001f;
        if ( signal2 < noise2 )
            signal2 = noise2;
        subframe_snr = 10.0f * (float) log10( signal2 / noise2 );
        subframe_snr = 10.0f * log10f( signal2 / noise2 );

        if ( L_frame == L_FRAME )
        {