diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-09-19 14:27:46 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-09-19 14:27:46 +0200 |
commit | 148b995189f72acdad967f1c4bce0b5e0216cc2c (patch) | |
tree | d3b37e09e56f442cc886672810cb8bfb4ced4803 /include/trig.h | |
parent | f255cbd7dc765562ecdf3b5344fbba15245b7e66 (diff) |
finish egg hatch, clean up headers
Diffstat (limited to 'include/trig.h')
-rw-r--r-- | include/trig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/trig.h b/include/trig.h index a2f98a3e6..477a0163f 100644 --- a/include/trig.h +++ b/include/trig.h @@ -1,6 +1,9 @@ #ifndef GUARD_TRIG_H #define GUARD_TRIG_H +// Converts a number to Q8.8 fixed-point format +#define Q_8_8(n) ((s16)((n) * 256)) + extern const s16 gSineTable[]; s16 Sin(s16 index, s16 amplitude); |