summaryrefslogtreecommitdiff
path: root/mdct.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdct.h')
-rw-r--r--mdct.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/mdct.h b/mdct.h
index fe7ba33..6d88907 100644
--- a/mdct.h
+++ b/mdct.h
@@ -23,9 +23,16 @@
#define DATA_TYPE ogg_int32_t
#define REG_TYPE register ogg_int32_t
-#define cPI3_8 (0x61f78a9bUL>>1)
-#define cPI2_8 (0xb504f334UL>>1)
-#define cPI1_8 (0xec835e7aUL>>1)
+
+#ifdef _LOW_ACCURACY_
+#define cPI3_8 (0x0062)
+#define cPI2_8 (0x00b5)
+#define cPI1_8 (0x00ed)
+#else
+#define cPI3_8 (0x30fbc54d)
+#define cPI2_8 (0x5a82799a)
+#define cPI1_8 (0x7641af3d)
+#endif
extern void mdct_forward(int n, DATA_TYPE *in, DATA_TYPE *out);
extern void mdct_backward(int n, DATA_TYPE *in, DATA_TYPE *out);