summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/gbs_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/gbs_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/gbs_emu.c')
-rw-r--r--apps/codecs/libgme/gbs_emu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libgme/gbs_emu.c b/apps/codecs/libgme/gbs_emu.c
index d0780fc0b9..640ea43a70 100644
--- a/apps/codecs/libgme/gbs_emu.c
+++ b/apps/codecs/libgme/gbs_emu.c
@@ -17,7 +17,7 @@ License along with this module; if not, write to the Free Software Foundation,
17Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ 17Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
18 18
19 19
20const char gme_wrong_file_type [] ICONST_ATTR = "Wrong file type for this emulator"; 20const char gme_wrong_file_type [] = "Wrong file type for this emulator";
21 21
22int const idle_addr = 0xF00D; 22int const idle_addr = 0xF00D;
23int const tempo_unit = 16; 23int const tempo_unit = 16;
@@ -334,7 +334,7 @@ blargg_err_t Gbs_start_track( struct Gbs_Emu* this, int track )
334 Buffer_clear( &this->stereo_buf ); 334 Buffer_clear( &this->stereo_buf );
335 335
336 // Reset APU to state expected by most rips 336 // Reset APU to state expected by most rips
337 static byte const sound_data [] ICONST_ATTR = { 337 static byte const sound_data [] = {
338 0x80, 0xBF, 0x00, 0x00, 0xB8, // square 1 DAC disabled 338 0x80, 0xBF, 0x00, 0x00, 0xB8, // square 1 DAC disabled
339 0x00, 0x3F, 0x00, 0x00, 0xB8, // square 2 DAC disabled 339 0x00, 0x3F, 0x00, 0x00, 0xB8, // square 2 DAC disabled
340 0x7F, 0xFF, 0x9F, 0x00, 0xB8, // wave DAC disabled 340 0x7F, 0xFF, 0x9F, 0x00, 0xB8, // wave DAC disabled