remove "empty download cache" menu entry -- clearing the cache will be in the configu...
[Rockbox.git] / apps / codecs / libmad / mad_iram.h
blobb4dadd8a2336ae8d7f6e0cfcfa0f6d0e469dfbb5
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2007 Dave Chapman
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 /* Define how IRAM is used on the various targets. Note that this
21 file is included by both .c and .S files so must not contain any C
22 code.
25 #ifndef _LIBMAD_IRAM_H
26 #define _LIBMAD_IRAM_H
28 #include "config.h"
30 /* Code performs slower in IRAM on PP502x and there is no space in
31 mpegplayer on the PP5002. S3C2440 doesn't have any IRAM available for
32 codecs */
33 #if defined(CPU_PP502x) || (CONFIG_CPU == PP5002 && defined(MPEGPLAYER)) || \
34 (CONFIG_CPU==S3C2440)
35 #define ICODE_SECTION_MPA_ARM .text
36 #define ICODE_ATTR_MPA_SYNTH
37 #else
38 #define ICODE_SECTION_MPA_ARM .icode
39 #define ICODE_ATTR_MPA_SYNTH ICODE_ATTR
40 #endif
42 #if CONFIG_CPU == S3C2440
43 #define IBSS_SECTION_MPA_ARM .bss
44 #else
45 #define IBSS_SECTION_MPA_ARM .ibss
46 #endif
48 #ifndef ICONST_ATTR_MPA_HUFFMAN
49 #define ICONST_ATTR_MPA_HUFFMAN ICONST_ATTR
50 #endif
52 #endif /* MAD_IRAM_H */