From 53ce9e87fa11300647020ab6dd0a964ce0ff5a19 Mon Sep 17 00:00:00 2001 From: Monty Date: Wed, 16 Oct 2002 09:07:00 +0000 Subject: Nicolas Pitre's LOW_ACCURACY patch git-svn-id: https://svn.xiph.org/trunk/Tremor@4012 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- mdct.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mdct.h') 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); -- cgit v1.2.1