Constants

This group regroups all the constants you can use in your project.

## Macros

#define CST_E   2.718281828459045235360287471352662497757
E definition also known as the natural logarithmic base. More...

#define CST_INV_SQUARE_ROOT_2   0.70710678118654752440084436210485
1/sqrt(2) definition More...

#define CST_LN_10   2.3025850929940456840179914546844
ln(10) definition More...

#define CST_LN_2   0.69314718055994530941723212145818
ln(2) definition More...

#define CST_PI   3.141592653589793238462643383279502884197
PI definition also known as the Archimedes' constant. More...

#define CST_SQUARE_ROOT_2   1.4142135623730950488016887242097
sqrt(2) definition More...

#define DSP16_PI_DIV_4   DSP16_Q(CST_PI/4.)
PI/4 definition for the 16-bit fixed point type. More...

#define DSP32_PI_DIV_4   DSP32_Q(CST_PI/4.)
PI/4 definition for the 32-bit fixed point type. More...

#define FALSE   0
Boolean FALSE constant. More...

#define TRUE   1
Boolean TRUE constant. More...

 #define CST_E   2.718281828459045235360287471352662497757

E definition also known as the natural logarithmic base.

 #define CST_INV_SQUARE_ROOT_2   0.70710678118654752440084436210485

1/sqrt(2) definition

Referenced by dsp16_op_exp(), dsp16_op_sqrt(), dsp32_op_exp(), and dsp32_op_sqrt().

 #define CST_LN_10   2.3025850929940456840179914546844

ln(10) definition

Referenced by dsp16_op_log10(), dsp32_op_log10(), and mfcc_lin_to_mel().

 #define CST_LN_2   0.69314718055994530941723212145818

ln(2) definition

 #define CST_PI   3.141592653589793238462643383279502884197

PI definition also known as the Archimedes' constant.

 #define CST_SQUARE_ROOT_2   1.4142135623730950488016887242097

sqrt(2) definition

Referenced by dsp16_op_exp(), and dsp32_op_exp().

 #define DSP16_PI_DIV_4   DSP16_Q(CST_PI/4.)

PI/4 definition for the 16-bit fixed point type.

 #define DSP32_PI_DIV_4   DSP32_Q(CST_PI/4.)

PI/4 definition for the 32-bit fixed point type.