--- /dev/null
+#ifndef LUT_H_
+#define LUT_H_
+
+#include <stdint.h>
+
+#define SINTAB_BITS 9
+#define SINTAB_SIZE (1 << SINTAB_BITS)
+
+#define SIN(angle) \
+ (sintab[((angle) >> (16 - SINTAB_BITS)) & (SINTAB_SIZE - 1)])
+
+#define COS(angle) \
+ (sintab[(((angle) >> (16 - SINTAB_BITS)) + (SINTAB_SIZE / 4)) & (SINTAB_SIZE - 1)])
+
+
+extern int32_t sintab[SINTAB_SIZE];
+
+void init_lut(void);
+
+#endif /* LUT_H_ */