Relative functions:
Functions | |
static dsp16_t | dsp16_op_abs (dsp16_t number) |
16-bit fixed point version of the absolute function. | |
static dsp16_t | dsp16_op_acos (dsp16_t number) |
16-bit fixed point version of the arc cosine function. | |
dsp16_t | dsp16_op_asin (dsp16_t number) |
16-bit fixed point version of the arc sine function. | |
static dsp16_t | dsp16_op_cos (dsp16_t angle) |
16-bit fixed point version of the cosine function. | |
static dsp16_t | dsp16_op_div (dsp16_t num, dsp16_t den) |
16-bit fixed point version of the division function. | |
dsp16_t | dsp16_op_exp (dsp16_t number) |
16-bit fixed point version of the exponential function. | |
dsp16_t | dsp16_op_ln (dsp16_t number) |
16-bit fixed point version of the natural logarithm function. | |
dsp16_t | dsp16_op_log10 (dsp16_t number) |
16-bit fixed point version of the common logarithm function. | |
dsp16_t | dsp16_op_log2 (dsp16_t number) |
16-bit fixed point version of the binary logarithm function. | |
static dsp16_t | dsp16_op_mul (dsp16_t num1, dsp16_t num2) |
16-bit fixed point version of the multiplication function. | |
dsp16_t | dsp16_op_pow (dsp16_t x, dsp16_t y) |
16-bit fixed point version of the power function. | |
dsp16_t | dsp16_op_rand () |
16-bit fixed point version of the random operator. | |
dsp16_t | dsp16_op_sin (dsp16_t angle) |
16-bit fixed point version of the sine function. | |
dsp16_t | dsp16_op_sqrt (dsp16_t number) |
16-bit fixed point version of the square root function. | |
static dsp32_t | dsp32_op_abs (dsp32_t number) |
32-bit fixed point version of the absolute function. | |
static dsp32_t | dsp32_op_acos (dsp32_t number) |
32-bit fixed point version of the arc cosine function. | |
dsp32_t | dsp32_op_asin (dsp32_t number) |
32-bit fixed point version of the arc sine function. | |
static dsp32_t | dsp32_op_cos (dsp32_t angle) |
32-bit fixed point version of the cosine function. | |
static dsp32_t | dsp32_op_div (dsp32_t num, dsp32_t den) |
32-bit fixed point version of the division function. | |
dsp32_t | dsp32_op_exp (dsp32_t number) |
32-bit fixed point version of the exponential function. | |
dsp32_t | dsp32_op_ln (dsp32_t number) |
32-bit fixed point version of the natural logarithm function. | |
dsp32_t | dsp32_op_log10 (dsp32_t number) |
32-bit fixed point version of the common logarithm function. | |
dsp32_t | dsp32_op_log2 (dsp32_t number) |
32-bit fixed point version of the binary logarithm function. | |
static dsp32_t | dsp32_op_mul (dsp32_t num1, dsp32_t num2) |
32-bit fixed point version of the multiplication function. | |
dsp32_t | dsp32_op_pow (dsp32_t x, dsp32_t y) |
32-bit fixed point version of the power function. | |
dsp32_t | dsp32_op_rand () |
32-bit fixed point version of the random operator. | |
dsp32_t | dsp32_op_sin (dsp32_t angle) |
32-bit fixed point version of the sine function. | |
dsp32_t | dsp32_op_sqrt (dsp32_t number) |
32-bit fixed point version of the square root function. | |
void | dsp_op_srand (int new_seed) |
Initialize the pseudo-random number generator. |
16-bit fixed point version of the absolute function.
number | The number to compute |
Definition at line 267 of file dsp_operators.h.
16-bit fixed point version of the arc cosine function.
number | The number to compute |
Definition at line 240 of file dsp_operators.h.
References dsp16_op_asin(), and DSP16_Q.
00240 { return (DSP16_Q(0.5)-1) - dsp16_op_asin(number); }
16-bit fixed point version of the arc sine function.
number | The number to compute |
Referenced by dsp16_op_acos().
16-bit fixed point version of the cosine function.
angle | The angle to compute |
Definition at line 178 of file dsp_operators.h.
References dsp16_op_sin(), and DSP16_Q.
00178 { return dsp16_op_sin(angle + DSP16_Q(0.5)); }
16-bit fixed point version of the division function.
num | The numerator of the division. | |
den | The denominator of the division. |
Definition at line 118 of file dsp_operators.h.
References DSP16_QB.
16-bit fixed point version of the exponential function.
number | The number to compute |
16-bit fixed point version of the natural logarithm function.
number | The number to compute |
16-bit fixed point version of the common logarithm function.
number | The number to compute |
16-bit fixed point version of the binary logarithm function.
number | The number to compute |
16-bit fixed point version of the multiplication function.
num1 | The first member of the multiplication. | |
num2 | The second member of the multiplication. |
Definition at line 91 of file dsp_operators.h.
References DSP16_QB.
16-bit fixed point version of the power function.
x | The number from which the power has to be applied. | |
y | The power. |
DSP_Q_MIN if the argument x is negative: this would result in a complex number.
dsp16_t dsp16_op_rand | ( | ) |
16-bit fixed point version of the random operator.
16-bit fixed point version of the sine function.
angle | The angle to compute |
Referenced by dsp16_op_cos().
16-bit fixed point version of the square root function.
number | The number to compute |
32-bit fixed point version of the absolute function.
number | The number to compute |
Definition at line 273 of file dsp_operators.h.
32-bit fixed point version of the arc cosine function.
number | The number to compute |
Definition at line 248 of file dsp_operators.h.
References dsp32_op_asin(), and DSP32_Q.
00248 { return (DSP32_Q(0.5)-1) - dsp32_op_asin(number); }
32-bit fixed point version of the arc sine function.
number | The number to compute |
Referenced by dsp32_op_acos().
32-bit fixed point version of the cosine function.
angle | The angle to compute |
Definition at line 186 of file dsp_operators.h.
References dsp32_op_sin(), and DSP32_Q.
00186 { return dsp32_op_sin(angle + DSP32_Q(0.5)); }
32-bit fixed point version of the division function.
num | The numerator of the division. | |
den | The denominator of the division. |
Definition at line 125 of file dsp_operators.h.
References DSP32_QB.
32-bit fixed point version of the exponential function.
number | The number to compute |
32-bit fixed point version of the natural logarithm function.
number | The number to compute |
32-bit fixed point version of the common logarithm function.
number | The number to compute |
32-bit fixed point version of the binary logarithm function.
number | The number to compute |
32-bit fixed point version of the multiplication function.
num1 | The first member of the multiplication. | |
num2 | The second member of the multiplication. |
Definition at line 98 of file dsp_operators.h.
References DSP32_QB.
32-bit fixed point version of the power function.
x | The number from which the power has to be applied. | |
y | The power. |
DSP_Q_MIN if the argument x is negative: this would result in a complex number.
dsp32_t dsp32_op_rand | ( | ) |
32-bit fixed point version of the random operator.
32-bit fixed point version of the sine function.
angle | The angle to compute |
Referenced by dsp32_op_cos().
32-bit fixed point version of the square root function.
number | The number to compute |
void dsp_op_srand | ( | int | new_seed | ) |
Initialize the pseudo-random number generator.
new_seed | An integer value to be used as seed by the pseudo-random number generator algorithm. |