summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/arch.h
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-11-14 02:15:56 +0000
committerThom Johansen <thomj@rockbox.org>2007-11-14 02:15:56 +0000
commit85b325fdb991a0602a2f16a55fc1df2c303aded1 (patch)
tree6eba0129ce3cc84831b37e2ed64c473d053317ac /apps/codecs/libspeex/arch.h
parent91f618f1ba1e507a9aa1cf7ee87eaf0370272b17 (diff)
downloadrockbox-85b325fdb991a0602a2f16a55fc1df2c303aded1.tar.gz
rockbox-85b325fdb991a0602a2f16a55fc1df2c303aded1.zip
Sync Speex to SVN. Disable stereo compatibility hack since we don't needed it and it produced warnings. Remove unneeded math.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15613 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/arch.h')
-rw-r--r--apps/codecs/libspeex/arch.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/apps/codecs/libspeex/arch.h b/apps/codecs/libspeex/arch.h
index 1e48e93388..9db16ff34d 100644
--- a/apps/codecs/libspeex/arch.h
+++ b/apps/codecs/libspeex/arch.h
@@ -35,6 +35,47 @@
35#ifndef ARCH_H 35#ifndef ARCH_H
36#define ARCH_H 36#define ARCH_H
37 37
38#include "config-speex.h"
39
40#ifndef SPEEX_VERSION
41#define SPEEX_MAJOR_VERSION 1 /**< Major Speex version. */
42#define SPEEX_MINOR_VERSION 1 /**< Minor Speex version. */
43#define SPEEX_MICRO_VERSION 15 /**< Micro Speex version. */
44#define SPEEX_EXTRA_VERSION "" /**< Extra Speex version. */
45#define SPEEX_VERSION "speex-1.2beta3" /**< Speex version string. */
46#endif
47
48/* A couple test to catch stupid option combinations */
49#ifdef FIXED_POINT
50
51#ifdef FLOATING_POINT
52#error You cannot compile as floating point and fixed point at the same time
53#endif
54#ifdef _USE_SSE
55#error SSE is only for floating-point
56#endif
57#if ((defined (ARM4_ASM)||defined (ARM4_ASM)) && defined(BFIN_ASM)) || (defined (ARM4_ASM)&&defined(ARM5E_ASM))
58#error Make up your mind. What CPU do you have?
59#endif
60#ifdef VORBIS_PSYCHO
61#error Vorbis-psy model currently not implemented in fixed-point
62#endif
63
64#else
65
66#ifndef FLOATING_POINT
67#error You now need to define either FIXED_POINT or FLOATING_POINT
68#endif
69#if defined (ARM4_ASM) || defined(ARM5E_ASM) || defined(BFIN_ASM)
70#error I suppose you can have a [ARM4/ARM5E/Blackfin] that has float instructions?
71#endif
72#ifdef FIXED_POINT_DEBUG
73#error "Don't you think enabling fixed-point is a good thing to do if you want to debug that?"
74#endif
75
76
77#endif
78
38#ifndef OUTSIDE_SPEEX 79#ifndef OUTSIDE_SPEEX
39#include "speex/speex_types.h" 80#include "speex/speex_types.h"
40#endif 81#endif
@@ -192,4 +233,11 @@ typedef float spx_word32_t;
192 233
193#endif 234#endif
194 235
236
237
238#ifdef FIXED_DEBUG
239long long spx_mips=0;
240#endif
241
242
195#endif 243#endif