Extended Fixed Point Arithmetic
include/math/fixed_extended.h View source View on GitHubFunctions
Section titled “Functions”fx_poly_eval
Section titled “fx_poly_eval”fx32_32_t fx_poly_eval(fx32_32_t x, const fx32_32_t *c, int n); fx_exp
Section titled “fx_exp”fx32_32_t fx_exp(fx32_32_t x); fx32_32_t fx_ln(fx32_32_t x); fx_sin
Section titled “fx_sin”fx32_32_t fx_sin(fx32_32_t angle); fx_cos
Section titled “fx_cos”fx32_32_t fx_cos(fx32_32_t angle); fx_sincos
Section titled “fx_sincos”void fx_sincos(fx32_32_t angle, fx32_32_t *sin_out, fx32_32_t *cos_out); Macros
Section titled “Macros”#define FP_PI 3.14159265358979323846 #define FX_PI FX(3.14159265358979323846) #define FX_E FX(2.71828182845045235360)