![]() |
LIBML
Version 3.2.4
LIBML DSP Software Library
|
#include "tpt_math.h"
Macros | |
| #define | NORM_SH (15) |
| #define | CST_1 (1L << NORM_SH) |
| #define | CST_2 (4L << NORM_SH) |
| #define | D2Q(F) ((q15_t)((float)F * (float)CST_1)) |
| #define | MULQ(a, b) ((q15_t)(((q31_t)(a) * (b)) >> 16)) |
| #define | OCTANTIFY(_x, _y, _o) |
| #define | BRAD_PI 0x2000 /* 32768/4 */ |
Functions | |
| static q31_t | atan1 (const q31_t x) |
| q15_t | tpt_atan2_q15 (q15_t y, q15_t x) |
| Arc tangent in radian of y/x using sign of x and y to determine right quadrant. More... | |
Variables | |
| static q15_t | ga [] |
| static q15_t | gb [] |
| #define BRAD_PI 0x2000 /* 32768/4 */ |
| #define CST_1 (1L << NORM_SH) |
| #define CST_2 (4L << NORM_SH) |
| #define NORM_SH (15) |
| #define OCTANTIFY | ( | _x, | |
| _y, | |||
| _o | |||
| ) |
|
static |
|
static |