brazos-trapezoidal
MathLib.h
Go to the documentation of this file.
1
11#ifndef MATHLIB_MATHLIB_H_
12#define MATHLIB_MATHLIB_H_
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17 /*-------------------------------------------------------------*/
18 /* Includes and dependencies */
19 /*-------------------------------------------------------------*/
20#include "stdint.h"
21
22
23#define IQ_MATH 1
24
25#include "mc_types.h"
26#ifdef IQ_MATH
27typedef int32_t mc_t;
28typedef uint32_t u_mc_t;
29#include "MathLib_Iq.h"
30#else
31typedef float32_t mc_t;
32#include "MathLib_Float.h"
33#endif
34#include <math.h>
35 /*-------------------------------------------------------------*/
36 /* Typedefs enums & structs */
37 /*-------------------------------------------------------------*/
38
39
40 /*-------------------------------------------------------------*/
41 /* Macros and definitions */
42 /*-------------------------------------------------------------*/
43#define PI 3.14159265359f
44#define TWOPI 6.28318530718f
45#define SQRT3FL (0.86602540378443864676372317075294*2)
46
47 /*-------------------------------------------------------------*/
48 /* Functions prototypes */
49 /*-------------------------------------------------------------*/
50
51 /*-------------------------------------------------------------*/
52 /* Inline Functions */
53 /*-------------------------------------------------------------*/
54#ifdef __cplusplus
55 }
56#endif // C
57#endif /* MATHLIB_MATHLIB_H_ */
Contains generic typedefs that are able to change in case of different processors.