summaryrefslogtreecommitdiff
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
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
-rw-r--r--apps/codecs/libfaad/common.h4
-rw-r--r--apps/codecs/libmusepack/mpcdec.h4
-rw-r--r--apps/codecs/libwmapro/wmaprodec.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/libfaad/common.h b/apps/codecs/libfaad/common.h
index abef33e645..109dfe67cb 100644
--- a/apps/codecs/libfaad/common.h
+++ b/apps/codecs/libfaad/common.h
@@ -51,13 +51,13 @@ extern struct codec_api* ci;
51#define LOGF(...) 51#define LOGF(...)
52#endif 52#endif
53 53
54#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X) 54#if (CONFIG_CPU == MCF5250)
55/* Enough IRAM but performance suffers with ICODE_ATTR. */ 55/* Enough IRAM but performance suffers with ICODE_ATTR. */
56#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR 56#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR
57#define ICODE_ATTR_FAAD_LARGE_IRAM 57#define ICODE_ATTR_FAAD_LARGE_IRAM
58#define ICONST_ATTR_FAAD_LARGE_IRAM ICONST_ATTR 58#define ICONST_ATTR_FAAD_LARGE_IRAM ICONST_ATTR
59 59
60#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) 60#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
61/* Enough IRAM to move additional data and code to it. */ 61/* Enough IRAM to move additional data and code to it. */
62#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR 62#define IBSS_ATTR_FAAD_LARGE_IRAM IBSS_ATTR
63#define ICODE_ATTR_FAAD_LARGE_IRAM ICODE_ATTR 63#define ICODE_ATTR_FAAD_LARGE_IRAM ICODE_ATTR
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 @@
47extern "C" { 47extern "C" {
48#endif 48#endif
49 49
50#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X) 50#if (CONFIG_CPU == MCF5250)
51/* Enough IRAM but performance suffers with ICODE_ATTR. */ 51/* Enough IRAM but performance suffers with ICODE_ATTR. */
52#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR 52#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
53#define ICODE_ATTR_MPC_LARGE_IRAM 53#define ICODE_ATTR_MPC_LARGE_IRAM
@@ -55,7 +55,7 @@ extern "C" {
55/* Keep the data arrays of bitsreadr.c in IRAM. */ 55/* Keep the data arrays of bitsreadr.c in IRAM. */
56#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR 56#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR
57 57
58#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) 58#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
59/* Enough IRAM to move additional data and code to it. */ 59/* Enough IRAM to move additional data and code to it. */
60#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR 60#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
61#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR 61#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR
diff --git a/apps/codecs/libwmapro/wmaprodec.h b/apps/codecs/libwmapro/wmaprodec.h
index d4e0e00144..e30205cd35 100644
--- a/apps/codecs/libwmapro/wmaprodec.h
+++ b/apps/codecs/libwmapro/wmaprodec.h
@@ -2,14 +2,14 @@
2#include "wma.h" 2#include "wma.h"
3#include "../libasf/asf.h" 3#include "../libasf/asf.h"
4 4
5#if (CONFIG_CPU == MCF5250) || defined(CPU_S5L870X) 5#if (CONFIG_CPU == MCF5250)
6/* Enough IRAM but performance suffers with ICODE_ATTR. */ 6/* Enough IRAM but performance suffers with ICODE_ATTR. */
7#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR 7#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
8#define ICODE_ATTR_WMAPRO_LARGE_IRAM 8#define ICODE_ATTR_WMAPRO_LARGE_IRAM
9#define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR 9#define ICONST_ATTR_WMAPRO_LARGE_IRAM ICONST_ATTR
10#define ICONST_ATTR_WMAPRO_WIN_VS_TMP 10#define ICONST_ATTR_WMAPRO_WIN_VS_TMP
11 11
12#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) 12#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || defined(CPU_S5L870X)
13/* Enough IRAM to move additional data and code to it. */ 13/* Enough IRAM to move additional data and code to it. */
14#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR 14#define IBSS_ATTR_WMAPRO_LARGE_IRAM IBSS_ATTR
15#define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR 15#define ICODE_ATTR_WMAPRO_LARGE_IRAM ICODE_ATTR