diff options
author | Thom Johansen <thomj@rockbox.org> | 2007-11-09 01:11:34 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2007-11-09 01:11:34 +0000 |
commit | e43c1ac338fa57b874c17238452e5fcfa5481489 (patch) | |
tree | 38bd693b367317296bdfa4056de5a7c8df6fe149 /apps/codecs/libspeex/arch.h | |
parent | c58673976379953c089340f95c7730e87762199b (diff) | |
download | rockbox-e43c1ac338fa57b874c17238452e5fcfa5481489.tar.gz rockbox-e43c1ac338fa57b874c17238452e5fcfa5481489.zip |
Remove some unneeded floating point usage, port some needed floating point code to fixed point.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15547 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/arch.h')
-rw-r--r-- | apps/codecs/libspeex/arch.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/codecs/libspeex/arch.h b/apps/codecs/libspeex/arch.h index e2d731acc0..1e48e93388 100644 --- a/apps/codecs/libspeex/arch.h +++ b/apps/codecs/libspeex/arch.h | |||
@@ -68,6 +68,7 @@ typedef spx_word32_t spx_sig_t; | |||
68 | #define LPC_SHIFT 13 | 68 | #define LPC_SHIFT 13 |
69 | #define LSP_SHIFT 13 | 69 | #define LSP_SHIFT 13 |
70 | #define SIG_SHIFT 14 | 70 | #define SIG_SHIFT 14 |
71 | #define GAIN_SHIFT 6 | ||
71 | 72 | ||
72 | #define VERY_SMALL 0 | 73 | #define VERY_SMALL 0 |
73 | #define VERY_LARGE32 ((spx_word32_t)2147483647) | 74 | #define VERY_LARGE32 ((spx_word32_t)2147483647) |
@@ -111,9 +112,6 @@ typedef float spx_word32_t; | |||
111 | #define GAIN_SCALING 1.f | 112 | #define GAIN_SCALING 1.f |
112 | #define GAIN_SCALING_1 1.f | 113 | #define GAIN_SCALING_1 1.f |
113 | 114 | ||
114 | #define LPC_SHIFT 0 | ||
115 | #define LSP_SHIFT 0 | ||
116 | #define SIG_SHIFT 0 | ||
117 | 115 | ||
118 | #define VERY_SMALL 1e-15f | 116 | #define VERY_SMALL 1e-15f |
119 | #define VERY_LARGE32 1e15f | 117 | #define VERY_LARGE32 1e15f |