Loading lib_dec/pvq_core_dec.c +3 −6 Original line number Diff line number Diff line Loading @@ -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]; Loading lib_enc/pvq_core_enc.c +1 −1 Original line number Diff line number Diff line Loading @@ -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]; Loading Loading
lib_dec/pvq_core_dec.c +3 −6 Original line number Diff line number Diff line Loading @@ -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]; Loading
lib_enc/pvq_core_enc.c +1 −1 Original line number Diff line number Diff line Loading @@ -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]; Loading