#include <math.h>
#include <endian.h>
◆ HIGH_HALF [1/2]
◆ HIGH_HALF [2/2]
◆ LOW_HALF [1/2]
◆ LOW_HALF [2/2]
◆ max
#define max |
( |
|
x, |
|
|
|
y |
|
) |
| (((y) > (x)) ? (y) : (x)) |
◆ min
#define min |
( |
|
x, |
|
|
|
y |
|
) |
| (((y) < (x)) ? (y) : (x)) |
◆ POLYNOMIAL
◆ POLYNOMIAL2
#define POLYNOMIAL2 |
( |
|
xx | ) |
((((s5 * (xx) + s4) * (xx) + s3) * (xx) + s2) * (xx)) |
◆ SINCOS_TABLE_LOOKUP
#define SINCOS_TABLE_LOOKUP |
( |
|
u, |
|
|
|
sn, |
|
|
|
ssn, |
|
|
|
cs, |
|
|
|
ccs |
|
) |
| |
Value:({ \
sn = __sincostab.x[k]; \
ssn = __sincostab.x[k + 1]; \
cs = __sincostab.x[k + 2]; \
ccs = __sincostab.x[k + 3]; \
})
#define LOW_HALF
Definition sincos.cpp:26
◆ TAYLOR_SIN
#define TAYLOR_SIN |
( |
|
xx, |
|
|
|
x, |
|
|
|
dx |
|
) |
| |
Value:({ \
double t = ((
POLYNOMIAL (xx) * (x) - 0.5 * (dx)) * (xx) + (dx)); \
double res = (x) + t; \
res; \
})
#define POLYNOMIAL(xx)
Definition sincos.cpp:942