summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libmusepack/mpcdec.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-02 21:06:20 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-11-02 21:06:20 +0000
commit560d89130f321f00b8c3b84f374b4ae04d3b2577 (patch)
tree6ea33fd1d3a5c0f7e4184e1d3eeba757e78b07b5 /apps/codecs/libmusepack/mpcdec.h
parent48bb3d00db6f8e1c628ffc517fcee01cf1d909e5 (diff)
downloadrockbox-560d89130f321f00b8c3b84f374b4ae04d3b2577.tar.gz
rockbox-560d89130f321f00b8c3b84f374b4ae04d3b2577.zip
Using icode attribute for S5L870x is faster on some codecs. Speed up for mpc is ~3%, for aac ~1%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28453 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/mpcdec.h')
-rw-r--r--apps/codecs/libmusepack/mpcdec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libmusepack/mpcdec.h b/apps/codecs/libmusepack/mpcdec.h
index f6aab9b16e..d4c3bd22fc 100644
--- a/apps/codecs/libmusepack/mpcdec.h
+++ b/apps/codecs/libmusepack/mpcdec.h
@@ -47,7 +47,7 @@
extern "C" {
#endif
-#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X)
+#if (CONFIG_CPU == MCF5250)
/* Enough IRAM but performance suffers with ICODE_ATTR. */
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
#define ICODE_ATTR_MPC_LARGE_IRAM
@@ -55,7 +55,7 @@ extern "C" {
/* Keep the data arrays of bitsreadr.c in IRAM. */
#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR
-#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
+#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
/* Enough IRAM to move additional data and code to it. */
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR