Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/audio/drc/drc_math_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static inline int32_t log10_fixed(int32_t x)
* Input is Q6.26: max 32.0
* Output range ~ (-inf, 30.1030); regulated to Q11.21: (-1024.0, 1024.0)
*/
inline int32_t drc_lin2db_fixed(int32_t linear)
int32_t drc_lin2db_fixed(int32_t linear)
{
int32_t log10_linear;

Expand All @@ -96,7 +96,7 @@ inline int32_t drc_lin2db_fixed(int32_t linear)
* Input is Q6.26: max 32.0
* Output range ~ (-inf, 3.4657); regulated to Q6.26: (-32.0, 32.0)
*/
inline int32_t drc_log_fixed(int32_t x)
int32_t drc_log_fixed(int32_t x)
{
const int32_t LOG10 = Q_CONVERT_FLOAT(2.3025850929940457f, 29);
int32_t log10_x;
Expand All @@ -114,7 +114,7 @@ inline int32_t drc_log_fixed(int32_t x)
* Input is Q2.30; valid range: [-1.0, 1.0]
* Output range: [-1.0, 1.0]; regulated to Q2.30: (-2.0, 2.0)
*/
inline int32_t drc_asin_fixed(int32_t x)
int32_t drc_asin_fixed(int32_t x)
{
#define qcl 30
#define qch 26
Expand Down Expand Up @@ -174,7 +174,7 @@ inline int32_t drc_asin_fixed(int32_t x)
* Input depends on precision_x
* Output depends on precision_y
*/
inline int32_t drc_inv_fixed(int32_t x, int32_t precision_x, int32_t precision_y)
int32_t drc_inv_fixed(int32_t x, int32_t precision_x, int32_t precision_y)
{
#define qc 25
/* Coefficients obtained from:
Expand Down Expand Up @@ -229,7 +229,7 @@ inline int32_t drc_inv_fixed(int32_t x, int32_t precision_x, int32_t precision_y
* y is Q2.30: (-2.0, 2.0)
* Output is Q12.20: max 2048.0
*/
inline int32_t drc_pow_fixed(int32_t x, int32_t y)
int32_t drc_pow_fixed(int32_t x, int32_t y)
{
/* Negative or zero input x is not supported, just return 0. */
if (x <= 0)
Expand Down
8 changes: 4 additions & 4 deletions src/audio/drc/drc_math_hifi3.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static inline ae_f32 log10_fixed(ae_f32 x)
* Input is Q6.26: max 32.0
* Output range ~ (-inf, 30.1030); regulated to Q11.21: (-1024.0, 1024.0)
*/
inline int32_t drc_lin2db_fixed(int32_t linear)
int32_t drc_lin2db_fixed(int32_t linear)
{
ae_f32 log10_linear;
ae_f64 tmp;
Expand All @@ -138,7 +138,7 @@ inline int32_t drc_lin2db_fixed(int32_t linear)
* Input is Q6.26: max 32.0
* Output range ~ (-inf, 3.4657); regulated to Q6.26: (-32.0, 32.0)
*/
inline int32_t drc_log_fixed(int32_t x)
int32_t drc_log_fixed(int32_t x)
{
ae_f32 log10_x;
ae_f64 tmp;
Expand All @@ -160,7 +160,7 @@ inline int32_t drc_log_fixed(int32_t x)
* Input is Q2.30; valid range: [-1.0, 1.0]
* Output range: [-1.0, 1.0]; regulated to Q2.30: (-2.0, 2.0)
*/
inline int32_t drc_asin_fixed(int32_t x)
int32_t drc_asin_fixed(int32_t x)
{
/* Coefficients obtained from:
* If x <= 1/sqrt(2), then
Expand Down Expand Up @@ -224,7 +224,7 @@ inline int32_t drc_asin_fixed(int32_t x)
* Input depends on precision_x
* Output depends on precision_y
*/
inline int32_t drc_inv_fixed(int32_t x, int32_t precision_x, int32_t precision_y)
int32_t drc_inv_fixed(int32_t x, int32_t precision_x, int32_t precision_y)
{
/* Coefficients obtained from:
* fpminimax(1/x, 5, [|SG...|], [sqrt(2)/2;1], absolute);
Expand Down
Loading