root / trunk / code / projects / fp_math / fp_math.h @ 1951
History | View | Annotate | Download (254 Bytes)
1 | 1579 | justin | |
---|---|---|---|
2 | #ifndef _FP_MATH_H_
|
||
3 | #define _FP_MATH_H_
|
||
4 | |||
5 | #define FP_PI 205887 |
||
6 | 1586 | justin | #define FP_E 178145 |
7 | 1579 | justin | |
8 | #include <stdint.h> |
||
9 | |||
10 | int32_t fp_cos(int32_t theta); |
||
11 | int32_t fp_sin(int32_t theta); |
||
12 | |||
13 | int32_t fp_mult(int32_t a, int32_t b); |
||
14 | int32_t fp_div(int32_t a, int32_t b); |
||
15 | |||
16 | #endif
|