summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/mpcdec.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-12 18:36:01 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-12 18:36:01 +0000
commitc82cac4c3d6d38b8df8e789c1b31a85cf2bd638e (patch)
tree907fbf8c660e4799d2b118489b7c1dc83280fce6 /apps/codecs/libmusepack/mpcdec.h
parent86dc6c1204b2adc3e64238c4dfdd65a473f0ce4c (diff)
downloadrockbox-c82cac4c3d6d38b8df8e789c1b31a85cf2bd638e.zip
rockbox-c82cac4c3d6d38b8df8e789c1b31a85cf2bd638e.tar.gz
rockbox-c82cac4c3d6d38b8df8e789c1b31a85cf2bd638e.tar.bz2
rockbox-c82cac4c3d6d38b8df8e789c1b31a85cf2bd638e.tar.xz
Restore musepack's IRAM configuration to pre r25127 for non PP5022/24.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25133 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/mpcdec.h')
-rwxr-xr-xapps/codecs/libmusepack/mpcdec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/mpcdec.h b/apps/codecs/libmusepack/mpcdec.h
index f97a645..be18cfe 100755
--- a/apps/codecs/libmusepack/mpcdec.h
+++ b/apps/codecs/libmusepack/mpcdec.h
@@ -52,18 +52,24 @@ extern "C" {
#define IBSS_ATTR_MPC_LARGE_IRAM IBSS_ATTR
#define ICODE_ATTR_MPC_LARGE_IRAM
#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR
+/* Keep the data arrays of bitsreadr.c in IRAM. */
+#define ICONST_ATTR_MPC_BITSREADER ICONST_ATTR
#elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
/* 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
#define ICONST_ATTR_MPC_LARGE_IRAM ICONST_ATTR
+/* Not putting the data arrays of bitsreader.c to IRAM allows to move the
+ * sv7/sv8 bitstream demuxing into IRAM. This config is faster. */
+#define ICONST_ATTR_MPC_BITSREADER
#else
/* Not enough IRAM available. */
#define IBSS_ATTR_MPC_LARGE_IRAM
#define ICODE_ATTR_MPC_LARGE_IRAM
#define ICONST_ATTR_MPC_LARGE_IRAM
+#define ICONST_ATTR_MPC_BITSREADER
#endif
enum {