Go to the source code of this file.
|
| static void | icomplex32_add (const struct icomplex32 *in1, const struct icomplex32 *in2, struct icomplex32 *out) |
| static void | icomplex32_adds (const struct icomplex32 *in1, const struct icomplex32 *in2, struct icomplex32 *out) |
| static void | icomplex32_sub (const struct icomplex32 *in1, const struct icomplex32 *in2, struct icomplex32 *out) |
| static void | icomplex32_mul (const struct icomplex32 *in1, const struct icomplex32 *in2, struct icomplex32 *out) |
| static void | icomplex32_conj (struct icomplex32 *comp) |
| static void | icomplex32_shift (const struct icomplex32 *input, int32_t n, struct icomplex32 *output) |
| void | sofm_icomplex32_to_polar (struct icomplex32 *complex, struct ipolar32 *polar) |
| | sofm_icomplex32_to_polar() - Convert (re, im) complex number to polar.
|
| void | sofm_ipolar32_to_complex (struct ipolar32 *polar, struct icomplex32 *complex) |
| | sofm_ipolar32_to_complex() - Convert complex number from polar to normal (re, im) format.
|
◆ icomplex32_add()
◆ icomplex32_adds()
◆ icomplex32_conj()
◆ icomplex32_mul()
◆ icomplex32_shift()
◆ icomplex32_sub()
◆ sofm_icomplex32_to_polar()
sofm_icomplex32_to_polar() - Convert (re, im) complex number to polar.
- Parameters
-
| complex | Pointer to input complex number in Q1.31 format. |
| polar | Pointer to output complex number in Q2.30 format for magnitude and Q3.29 for phase angle. |
The function can be used to convert data in-place with same address for input and output. It can be useful to save scratch memory.
◆ sofm_ipolar32_to_complex()
sofm_ipolar32_to_complex() - Convert complex number from polar to normal (re, im) format.
- Parameters
-
| polar | Pointer to input complex number in polar format. |
| complex | Pointer to output complex number in normal format in Q1.31. |
This function can be used to convert data in-place with same address for input and output. It can be useful to save scratch memory.