summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2010-03-09 23:44:25 +0000
committerJens Arnold <amiconn@rockbox.org>2010-03-09 23:44:25 +0000
commit3710ae92cc1aa7e13095003635ea9ed6a6e419d6 (patch)
treeb2ada9a6e7dc9a1a28df2ee45c962fcb961f3899 /apps/plugins
parent1dfa0e92dc2a2579e4372ada8c33e2af486c344a (diff)
downloadrockbox-3710ae92cc1aa7e13095003635ea9ed6a6e419d6.tar.gz
rockbox-3710ae92cc1aa7e13095003635ea9ed6a6e419d6.zip
Coldfire targets: tiny optimisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25098 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/doom/r_draw.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/plugins/doom/r_draw.c b/apps/plugins/doom/r_draw.c
index ee107f9839..8208972a66 100644
--- a/apps/plugins/doom/r_draw.c
+++ b/apps/plugins/doom/r_draw.c
@@ -534,12 +534,10 @@ void R_DrawSpan (void)
534 "clr.l %%d4 \n" 534 "clr.l %%d4 \n"
535 "spanloop: \n" 535 "spanloop: \n"
536 "move.l %[xfrac], %%d1 \n" 536 "move.l %[xfrac], %%d1 \n"
537 "move.l %[yfrac], %%d2 \n" 537 "swap %%d1 \n"
538 "lsr.l #8,%%d1 \n"
539 "lsr.l #8,%%d2 \n"
540 "lsr.l #8,%%d1 \n"
541 "lsr.l #2,%%d2 \n"
542 "and.l #63,%%d1 \n" 538 "and.l #63,%%d1 \n"
539 "move.l %[yfrac], %%d2 \n"
540 "lsr.l %[ten],%%d2 \n"
543 "and.l #4032,%%d2 \n" 541 "and.l #4032,%%d2 \n"
544 "or.l %%d2, %%d1 \n" 542 "or.l %%d2, %%d1 \n"
545 "move.b (%[source], %%d1), %%d4 \n" 543 "move.b (%[source], %%d1), %%d4 \n"
@@ -551,9 +549,10 @@ void R_DrawSpan (void)
551 "endspanloop: \n" 549 "endspanloop: \n"
552 : /* outputs */ 550 : /* outputs */
553 : /* inputs */ 551 : /* inputs */
552 [ten] "d"(10),
554 [count] "d" (ds_x2-ds_x1+1), 553 [count] "d" (ds_x2-ds_x1+1),
555 [xfrac] "d" (ds_xfrac), 554 [xfrac] "a" (ds_xfrac),
556 [yfrac] "d" (ds_yfrac), 555 [yfrac] "a" (ds_yfrac),
557 [source] "a" (ds_source), 556 [source] "a" (ds_source),
558 [colormap] "a" (ds_colormap), 557 [colormap] "a" (ds_colormap),
559 [dest] "a" (topleft+ds_y*SCREENWIDTH +ds_x1), 558 [dest] "a" (topleft+ds_y*SCREENWIDTH +ds_x1),