summaryrefslogtreecommitdiffstats
path: root/mufhd0/fixsin.h
diff options
context:
space:
mode:
Diffstat (limited to 'mufhd0/fixsin.h')
-rw-r--r--mufhd0/fixsin.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/mufhd0/fixsin.h b/mufhd0/fixsin.h
new file mode 100644
index 0000000..8c65184
--- /dev/null
+++ b/mufhd0/fixsin.h
@@ -0,0 +1,29 @@
+#ifndef FIXSIN_H
+#define FIXSIN_H
+
+/*
+ 16.16 fixed-point sine lookup tables...
+ author: Scott Scriven (scriven@vis.colostate.edu)
+*/
+
+#define FSINMAX 2047
+#define SINFIX 16
+#define FSINBITS 16
+
+
+#include <math.h>
+
+
+extern int FSinTab[2048];
+extern int FCosTab[2048];
+
+extern int FSin(int angle);
+extern int FCos(int angle);
+
+extern void FCreateSines();
+
+
+
+
+
+#endif