Skip to content
GitLab
Explore
Sign in
Commits on Source (4)
issue 820: Double precision arithmetic in IVAS_CALCULATE_ABS(); under FIX_820_DOUBLE_PREC_MACROS
· 36eccef9
vaclav
authored
Oct 09, 2023
36eccef9
Merge branch 'main' into 820-double-precision-arithmetic-in-ivas_calculate_abs
· 85775f4a
Vidhya V P
authored
Oct 16, 2023
85775f4a
Merge branch 'main' into 820-double-precision-arithmetic-in-ivas_calculate_abs
· fcf5a9e7
Vidhya V P
authored
Oct 18, 2023
fcf5a9e7
Merge branch '820-double-precision-arithmetic-in-ivas_calculate_abs' into 'main'
· 427b9392
Vidhya VP
authored
Oct 18, 2023
Resolve "Double precision arithmetic in IVAS_CALCULATE_ABS()" See merge request
!1149
427b9392
Show whitespace changes
Inline
Side-by-side
lib_com/ivas_prot.h
View file @
427b9392
...
...
@@ -4710,11 +4710,19 @@ void ivas_td_decorr_APD_iir_filter(
out1_re = ( in1_re * in2_re ) - ( in1_im * in2_im ); MAC(1); MULT(1); \
out1_im = ( in1_re * in2_im ) + ( in2_re * in1_im ); MAC(1); MULT(1);
#ifdef FIX_820_DOUBLE_PREC_MACROS
#define IVAS_CALCULATE_ABS( re, im, out ) \
out = sqrtf( ( re * re ) + ( im * im ) ); MAC(1); MULT(1); SQRT(1);
#define IVAS_CALCULATE_RABS( re, out ) \
out = sqrtf( re * re ); MULT(1); SQRT(1);
#else
#define IVAS_CALCULATE_ABS( re, im, out ) \
out = (float) sqrt( ( re * re ) + ( im * im ) ); MAC(1); MULT(1); SQRT(1);
#define IVAS_CALCULATE_RABS( re, out ) \
out = (float) sqrt( re * re ); MULT(1); SQRT(1);
#endif
#define IVAS_CALCULATE_SQ_ABS( re, im, out ) \
out = (float) ( ( re * re ) + ( im * im ) ); MAC(1); MULT(1);
...
...
lib_com/options.h
View file @
427b9392
...
...
@@ -153,6 +153,7 @@
#define FIX_817_DOUBLE_PREC_REND_MD
/* Eri: Issue 817: Avoid double precision in renderer metadata module */
#define FIX_820_DOUBLE_PREC_MACROS
/* VA: issue 820: Double precision arithmetic in IVAS_CALCULATE_ABS() */
#define FIX_854_ARRAY_SIZE_MISMATCH
/* VA: issue 854: correct the mismatch between definition and declaration of `ivas_core_dec() */
#define FIX_785_REMOVE_DEAD_CODE
/* VA: issue 785: remove dead code */
#define FIX_852_FIX_HANDLE_DEREF
/* VA: issue 852: Fix missing handle dereferencing of hIsmMetadaData in ivas_ism_metadata_close() */
...
...