summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/gb_apu.h
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/gb_apu.h
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/gb_apu.h')
-rw-r--r--apps/codecs/libgme/gb_apu.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libgme/gb_apu.h b/apps/codecs/libgme/gb_apu.h
index 642db8f32f..69307b9840 100644
--- a/apps/codecs/libgme/gb_apu.h
+++ b/apps/codecs/libgme/gb_apu.h
@@ -49,16 +49,16 @@ struct Gb_Apu {
49void Apu_init( struct Gb_Apu* this ); 49void Apu_init( struct Gb_Apu* this );
50 50
51// Emulates to time t, then writes data to addr 51// Emulates to time t, then writes data to addr
52void Apu_write_register( struct Gb_Apu* this, blip_time_t t, int addr, int data ) ICODE_ATTR; 52void Apu_write_register( struct Gb_Apu* this, blip_time_t t, int addr, int data );
53 53
54// Emulates to time t, then subtracts t from the current time. 54// Emulates to time t, then subtracts t from the current time.
55// OK if previous write call had time slightly after t. 55// OK if previous write call had time slightly after t.
56void Apu_end_frame( struct Gb_Apu* this,blip_time_t t ) ICODE_ATTR; 56void Apu_end_frame( struct Gb_Apu* this,blip_time_t t );
57 57
58// More features 58// More features
59 59
60// Emulates to time t, then reads from addr 60// Emulates to time t, then reads from addr
61int Apu_read_register( struct Gb_Apu* this, blip_time_t t, int addr ) ICODE_ATTR; 61int Apu_read_register( struct Gb_Apu* this, blip_time_t t, int addr );
62 62
63// Resets hardware to state after power, BEFORE boot ROM runs. Mode selects 63// Resets hardware to state after power, BEFORE boot ROM runs. Mode selects
64// sound hardware. If agb_wave is true, enables AGB's extra wave features. 64// sound hardware. If agb_wave is true, enables AGB's extra wave features.
@@ -80,6 +80,6 @@ void Apu_reduce_clicks( struct Gb_Apu* this, bool reduce );
80void Apu_set_tempo( struct Gb_Apu* this, int t ); 80void Apu_set_tempo( struct Gb_Apu* this, int t );
81 81
82 82
83void write_osc( struct Gb_Apu* this, int reg, int old_data, int data ) ICODE_ATTR; 83void write_osc( struct Gb_Apu* this, int reg, int old_data, int data );
84 84
85#endif 85#endif