17#define RETROFP_PI (3141)
24 const int16_t* SEG_MCONST lut, int16_t num, int16_t mult );
26#define retrofp_sin( num, mult ) retrofp_lut( g_retrofp_sin, num, mult )
28#define retrofp_cos( num, mult ) retrofp_lut( g_retrofp_cos, num, mult )
32MAUG_CONST int16_t SEG_MCONST g_retrofp_cos[] = {
98MAUG_CONST int16_t SEG_MCONST g_retrofp_sin[] = {
165 const int16_t* SEG_MCONST lut, int16_t num, int16_t mult
194 return (int16_t)cos_out;
199extern MAUG_CONST int16_t SEG_MCONST g_retrofp_cos[];
200extern MAUG_CONST int16_t SEG_MCONST g_retrofp_sin[];
#define RETROFP_PI
Fixed-point representation of Pi (3.141).
Definition retrofp.h:17
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 ...