summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/arch.h
diff options
context:
space:
mode:
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