summaryrefslogtreecommitdiff
path: root/include/trig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trig.h')
-rw-r--r--include/trig.h3
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);