maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
Maug Retro Fixed Point

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 []
 

Detailed Description

Macro Definition Documentation

◆ retrofp_cos

#define retrofp_cos ( num,
mult )
Value:
retrofp_lut( g_retrofp_cos, num, mult )
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 ...

◆ retrofp_sin

#define retrofp_sin ( num,
mult )
Value:
retrofp_lut( g_retrofp_sin, num, mult )