|
Sound Open Firmware
|
Fixed-point exponential and decibel-to-linear conversion functions. More...

Go to the source code of this file.
Macros | |
| #define | EXP_FIXED_INPUT_QY 27 |
| #define | EXP_FIXED_OUTPUT_QY 20 |
| #define | DB2LIN_FIXED_INPUT_QY 24 |
| #define | DB2LIN_FIXED_OUTPUT_QY 20 |
Functions | |
| int32_t | exp_fixed (int32_t x) |
| Compute fixed-point exponential e^x. | |
| int32_t | db2lin_fixed (int32_t x) |
| Convert decibels to linear amplitude scale 10^(x/20). | |
Fixed-point exponential and decibel-to-linear conversion functions.
| #define DB2LIN_FIXED_INPUT_QY 24 |
| #define DB2LIN_FIXED_OUTPUT_QY 20 |
| #define EXP_FIXED_INPUT_QY 27 |
| #define EXP_FIXED_OUTPUT_QY 20 |
| int32_t db2lin_fixed | ( | int32_t | x | ) |
Convert decibels to linear amplitude scale 10^(x/20).
| x | Input decibel value in Q8.24 format. |
| int32_t exp_fixed | ( | int32_t | x | ) |
Compute fixed-point exponential e^x.
| x | Input argument in Q5.27 format. |