maug
Quick and dirty C mini-augmentation library.
|
Files | |
file | retrofp.h |
Contains functions and macros for working with fixed-point numbers. | |
Macros | |
#define | RETROFP_PI (3141) |
Fixed-point representation of Pi (3.141). | |
#define | retrofp_sin(num, mult) |
#define | retrofp_cos(num, mult) |
Functions | |
int16_t | retrofp_lut (const int16_t *SEG_MCONST lut, int16_t num, int16_t mult) |
Given a lookup table, return the corresponding value after trimming precision and making sure number is valid. | |
Variables | |
MAUG_CONST int16_t SEG_MCONST | g_retrofp_cos [] |
MAUG_CONST int16_t SEG_MCONST | g_retrofp_sin [] |
#define retrofp_cos | ( | num, | |
mult ) |
#define retrofp_sin | ( | num, | |
mult ) |