summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/musepack.h
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2008-05-17 11:11:01 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2008-05-17 11:11:01 +0000
commitff78cd84185e44943feca14671b111339030809f (patch)
tree5cd1e05e68d4ac6d415cfb16426b9b1c7f05f22e /apps/codecs/libmusepack/musepack.h
parentab46e463bdd4df6f2f956179da4ef8b619f83f50 (diff)
downloadrockbox-ff78cd84185e44943feca14671b111339030809f.zip
rockbox-ff78cd84185e44943feca14671b111339030809f.tar.gz
rockbox-ff78cd84185e44943feca14671b111339030809f.tar.bz2
rockbox-ff78cd84185e44943feca14671b111339030809f.tar.xz
Commit FS#9000. Speed up Musepack decoder by 3% on PP5022/24 via using ICODE_ATTR for calc_new_V(). Additionally correct a type in decoder-struct.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/musepack.h')
-rw-r--r--apps/codecs/libmusepack/musepack.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/musepack.h b/apps/codecs/libmusepack/musepack.h
index 5d1ad0d..9bdebf8 100644
--- a/apps/codecs/libmusepack/musepack.h
+++ b/apps/codecs/libmusepack/musepack.h
@@ -66,6 +66,16 @@ extern "C" {
#endif
#endif
+#ifndef ICODE_ATTR_MPC_LARGE_IRAM
+#if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
+/* PP5022/24 have 128KB of IRAM and have better performance with ICODE_ATTR */
+#define ICODE_ATTR_MPC_LARGE_IRAM ICODE_ATTR
+#else
+/* all other targets either haven't enough IRAM or performance suffers */
+#define ICODE_ATTR_MPC_LARGE_IRAM
+#endif
+#endif
+
#ifdef ROCKBOX_LITTLE_ENDIAN
#define MPC_LITTLE_ENDIAN
#endif