Rev 28 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 28 | Rev 46 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | #ifndef INC_AP_MATH_H_ |
8 | #ifndef INC_AP_MATH_H_ |
| 9 | #define INC_AP_MATH_H_ |
9 | #define INC_AP_MATH_H_ |
| 10 | 10 | ||
| 11 | #define AP_K 256 |
11 | #define AP_K 256 |
| 12 | #define AP_SCALE(x) ((x)/AP_K) |
12 | #define AP_SCALE(x) ((x)/AP_K) |
| - | 13 | ||
| - | 14 | /* the number of steps in 90 degrees */ |
|
| - | 15 | #define SINE_SCALING 4 |
|
| - | 16 | #define SINE_STEPS (90*SINE_SCALING) |
|
| - | 17 | ||
| 13 | extern void ap_init(void); |
18 | extern void ap_init(void); |
| 14 | 19 | ||
| 15 | extern int ap_sin(int x); |
20 | extern int ap_sin(int x); |
| 16 | extern int ap_cos(int x); |
21 | extern int ap_cos(int x); |
| 17 | 22 | ||