diff --git a/src/aac_decoder/libfaad/fixed.h b/src/aac_decoder/libfaad/fixed.h index 871e4ed1..47ac760f 100644 --- a/src/aac_decoder/libfaad/fixed.h +++ b/src/aac_decoder/libfaad/fixed.h @@ -250,11 +250,12 @@ typedef float real_t; #define COEF_CONST(A) ((real_t)(A)) #define Q2_CONST(A) ((real_t)(A)) #define FRAC_CONST(A) ((real_t)(A)) /* pure fractional part */ -/* Complex multiplication */ -static void ComplexMult(real_t* y1, real_t* y2, real_t x1, real_t x2, real_t c1, real_t c2) { - *y1 = MUL_F(x1, c1) + MUL_F(x2, c2); - *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); -} + /* Complex multiplication */ + static void ComplexMult(real_t* y1, real_t* y2, real_t x1, real_t x2, real_t c1, real_t c2) { + *y1 = MUL_F(x1, c1) + MUL_F(x2, c2); + *y2 = MUL_F(x2, c1) - MUL_F(x1, c2); + } + #endif /* USE_DOUBLE_PRECISION */ #endif // FIXED_POINT diff --git a/src/aac_decoder/libfaad/neaacdec.c b/src/aac_decoder/libfaad/neaacdec.c index 688de47a..e557f703 100644 --- a/src/aac_decoder/libfaad/neaacdec.c +++ b/src/aac_decoder/libfaad/neaacdec.c @@ -3805,6 +3805,7 @@ void is_decode(ic_stream* ics, ic_stream* icsr, real_t* l_spec, real_t* r_spec, } } //—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— +#ifdef FIXED_POINT real_t fp_sqrt(real_t value) { real_t root = 0; step(0); @@ -3827,6 +3828,7 @@ real_t fp_sqrt(real_t value) { root <<= (REAL_BITS / 2); return root; } +#endif /*FIXED_POINT*/ //—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— mdct_info* faad_mdct_init(uint16_t N) { mdct_info* mdct = (mdct_info*)faad_malloc(sizeof(mdct_info));