Clean up a leftover preprocessor symbol and improve the workaround for the 'arm-elf...
[kugel-rb.git] / apps / codecs / libtremor / config-tremor.h
blobd6b2237960ec820280156e6da90bd2cf867a61bc
1 #ifndef _CONFIG_TREMOR_H
2 #define _CONFIG_TREMOR_H
4 #include "codeclib.h"
6 #ifdef CPU_ARM
7 #define _ARM_ASSEM_
8 #endif
10 #ifndef BYTE_ORDER
11 #ifdef ROCKBOX_BIG_ENDIAN
12 #define BIG_ENDIAN 1
13 #define LITTLE_ENDIAN 0
14 #define BYTE_ORDER BIG_ENDIAN
15 #else
16 #define BYTE_ORDER LITTLE_ENDIAN
17 #define LITTLE_ENDIAN 1
18 #define BIG_ENDIAN 0
19 #endif
20 #endif
22 /* Workaround for gcc bug where all static functions are called with short
23 calls */
24 #if !defined(ICODE_ATTR_TREMOR_NOT_MDCT) && (CONFIG_CPU==S5L8701)
25 #define STATICIRAM_NOT_MDCT STATICIRAM
26 #else
27 #define STATICIRAM_NOT_MDCT static
28 #endif
30 #ifndef ICODE_ATTR_TREMOR_NOT_MDCT
31 #define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR
32 #endif
34 /* Define CPU of large IRAM (PP5022/5024, MCF5250) */
35 #if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X) || (CONFIG_CPU == MCF5250)
36 /* PCM_BUFFER : 32768 byte (4096*2*4 or 2048*4*4) *
37 * WINDOW_LOOKUP : 9216 Byte (256*4 + 2048*4) *
38 * TOTAL : 41984 */
39 #define IRAM_IBSS_SIZE 41984
41 /* Define CPU of Normal IRAM (96KB) (and SIM also) */
42 #else
43 /* PCM_BUFFER : 16384 Byte (2048*2*4) *
44 * WINDOW_LOOKUP : 4608 Byte (128*4 + 1024*4) *
45 * TOTAL : 20992 */
46 #define IRAM_IBSS_SIZE 20992
47 #endif
49 /* max 2 channels */
50 #define CHANNELS 2
52 // #define _LOW_ACCURACY_
54 #endif /* _CONFIG_TREMOR_H */