Commit 219e31f6 authored by Jonas Svedberg's avatar Jonas Svedberg
Browse files

removed dbg printf and corrected comment on USAN

parent 3c812d38
Loading
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -115,15 +115,12 @@ static void pvq_decode_band(
    {
        g_part[j] = -( (float) g_part_s[j] ) / 32768;
#ifdef FIX_976_USAN_PVQ_ENC_DEC_EVS_CR
        /* note: here  g_part_s needs to be become exactly  1.0(float)  esp. for Np==1 , thus  g_part_s was initilized to  (int16_t) -32768 */
        /* note: here  g_part   needs to be become exactly  1.0(float) thus in BASOP  Word16 g_part_s is in the negative Q15 domain */
#endif

        if ( g_part_s[j] == -32768 )
        {
            printf( "\n Error  negative mag negative int16_t . Np=%2d in split j=%2d \n", Np, j );
        }

#ifdef FIX_976_USAN_PVQ_ENC_DEC_EVS_CR
        /* aligned to BASOP to avoid ASAN undefined negation issue with -(-32768) */
        /* aligned to BASOP to avoid USAN undefined negation warning for -(-32768) */
        g_part_s[j] = negate( g_part_s[j] );
#else
        g_part_s[j] = -g_part_s[j];
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ static void pvq_encode_band(
    {
        g_part[j] = -( (float) g_part_s[j] ) / 32768;
#ifdef FIX_976_USAN_PVQ_ENC_DEC_EVS_CR
        /* aligned to BASOP to avoid ASAN undefined negation issue with -(-32768) */
        /* aligned to BASOP to avoid USAN undefined negation warning with -(-32768) */
        g_part_s[j] = negate( g_part_s[j] );
#else
        g_part_s[j] = -g_part_s[j];