summaryrefslogtreecommitdiff
path: root/apps/codecs/libasap/acpu.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-15 13:40:02 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-15 13:40:02 +0000
commitbf46e634b4bb5bb00e139e05569a19a55b4b1214 (patch)
tree61fba1d534eedb514a206abde7a9ac2f57e0f684 /apps/codecs/libasap/acpu.c
parent322bbf7c00881b701f88713a7f4410ed69775475 (diff)
downloadrockbox-bf46e634b4bb5bb00e139e05569a19a55b4b1214.tar.gz
rockbox-bf46e634b4bb5bb00e139e05569a19a55b4b1214.zip
FS#12113: Optimize IRAM configuration for Atari SAP format. Performance gains range from 5% (PP5020), over 13-16% (PP5002, PP5022, PP5024, S5L870x) to 115% (MCF5249, MCF5250).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29883 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libasap/acpu.c')
-rw-r--r--apps/codecs/libasap/acpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libasap/acpu.c b/apps/codecs/libasap/acpu.c
index 0e91f9083a..0fd5988b83 100644
--- a/apps/codecs/libasap/acpu.c
+++ b/apps/codecs/libasap/acpu.c
@@ -286,7 +286,7 @@ FUNC(void, Cpu_RunScanlines, (P(ASAP_State PTR, ast), P(int, scanlines)))
286 cycle = ast _ cycle; 286 cycle = ast _ cycle;
287 if (cycle >= ast _ nearest_event_cycle) { 287 if (cycle >= ast _ nearest_event_cycle) {
288 if (cycle >= ast _ next_scanline_cycle) { 288 if (cycle >= ast _ next_scanline_cycle) {
289 if (++ast _ scanline_number == (ast _ module_info.ntsc ? 262 : 312)) 289 if (++ast _ scanline_number == (ast _ module_info->ntsc ? 262 : 312))
290 ast _ scanline_number = 0; 290 ast _ scanline_number = 0;
291 ast _ cycle = cycle += 9; 291 ast _ cycle = cycle += 9;
292 ast _ next_scanline_cycle += 114; 292 ast _ next_scanline_cycle += 114;
@@ -337,7 +337,7 @@ FUNC(void, Cpu_RunScanlines, (P(ASAP_State PTR, ast), P(int, scanlines)))
337 case 0xb2: 337 case 0xb2:
338 case 0xd2: 338 case 0xd2:
339 case 0xf2: 339 case 0xf2:
340 ast _ scanline_number = (ast _ scanline_number + scanlines - 1) % (ast _ module_info.ntsc ? 262 : 312); 340 ast _ scanline_number = (ast _ scanline_number + scanlines - 1) % (ast _ module_info->ntsc ? 262 : 312);
341 scanlines = 1; 341 scanlines = 1;
342 ast _ cycle = cycle_limit; 342 ast _ cycle = cycle_limit;
343 break; 343 break;