| 
    maug
    
   Quick and dirty C mini-augmentation library. 
   | 
 
Contains functions and macros for working with fixed-point numbers. More...
Go to the source code of this file.
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 [] | 
Contains functions and macros for working with fixed-point numbers.
Maug retro fixed point numbers are rounded to 3 decimal places (e.g. RETROFP_PI).