summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/ym2612_emu.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-13 16:41:14 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-13 16:41:14 +0000
commita1145a1d040dd52b2b5d0e7fe965b6507475bbe2 (patch)
tree988f845d688974dd7db1950243ef09cc39ed443c /apps/codecs/libgme/ym2612_emu.c
parent724a2d2514578297a7fe21dc4c17a7b51a25758d (diff)
downloadrockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.tar.gz
rockbox-a1145a1d040dd52b2b5d0e7fe965b6507475bbe2.zip
Remove all IRAM attributes from libGME to be able to restart the IRAM optimization on a clean code base. As first step move the sample buffers to IRAM which results in a 1-5% speedup for all codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30284 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libgme/ym2612_emu.c')
-rw-r--r--apps/codecs/libgme/ym2612_emu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libgme/ym2612_emu.c b/apps/codecs/libgme/ym2612_emu.c
index 2162d73850..970e4462e1 100644
--- a/apps/codecs/libgme/ym2612_emu.c
+++ b/apps/codecs/libgme/ym2612_emu.c
@@ -43,7 +43,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
43 43
44const int output_bits = 14; 44const int output_bits = 14;
45 45
46static const unsigned char DT_DEF_TAB [4 * 32] ICONST_ATTR = 46static const unsigned char DT_DEF_TAB [4 * 32] =
47{ 47{
48// FD = 0 48// FD = 0
49 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -62,7 +62,7 @@ static const unsigned char DT_DEF_TAB [4 * 32] ICONST_ATTR =
62 8 , 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 22, 22, 22, 22 62 8 , 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 22, 22, 22, 22
63}; 63};
64 64
65static const unsigned char FKEY_TAB [16] ICONST_ATTR = 65static const unsigned char FKEY_TAB [16] =
66{ 66{
67 0, 0, 0, 0, 67 0, 0, 0, 0,
68 0, 0, 0, 1, 68 0, 0, 0, 1,
@@ -70,12 +70,12 @@ static const unsigned char FKEY_TAB [16] ICONST_ATTR =
70 3, 3, 3, 3 70 3, 3, 3, 3
71}; 71};
72 72
73static const unsigned char LFO_AMS_TAB [4] ICONST_ATTR = 73static const unsigned char LFO_AMS_TAB [4] =
74{ 74{
75 31, 4, 1, 0 75 31, 4, 1, 0
76}; 76};
77 77
78static const unsigned char LFO_FMS_TAB [8] ICONST_ATTR = 78static const unsigned char LFO_FMS_TAB [8] =
79{ 79{
80 LFO_FMS_BASE * 0, LFO_FMS_BASE * 1, 80 LFO_FMS_BASE * 0, LFO_FMS_BASE * 1,
81 LFO_FMS_BASE * 2, LFO_FMS_BASE * 3, 81 LFO_FMS_BASE * 2, LFO_FMS_BASE * 3,