forked from len0rd/rockbox
Coldfire targets: tiny optimisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25098 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1dfa0e92dc
commit
3710ae92cc
1 changed files with 6 additions and 7 deletions
|
@ -534,12 +534,10 @@ void R_DrawSpan (void)
|
||||||
"clr.l %%d4 \n"
|
"clr.l %%d4 \n"
|
||||||
"spanloop: \n"
|
"spanloop: \n"
|
||||||
"move.l %[xfrac], %%d1 \n"
|
"move.l %[xfrac], %%d1 \n"
|
||||||
"move.l %[yfrac], %%d2 \n"
|
"swap %%d1 \n"
|
||||||
"lsr.l #8,%%d1 \n"
|
|
||||||
"lsr.l #8,%%d2 \n"
|
|
||||||
"lsr.l #8,%%d1 \n"
|
|
||||||
"lsr.l #2,%%d2 \n"
|
|
||||||
"and.l #63,%%d1 \n"
|
"and.l #63,%%d1 \n"
|
||||||
|
"move.l %[yfrac], %%d2 \n"
|
||||||
|
"lsr.l %[ten],%%d2 \n"
|
||||||
"and.l #4032,%%d2 \n"
|
"and.l #4032,%%d2 \n"
|
||||||
"or.l %%d2, %%d1 \n"
|
"or.l %%d2, %%d1 \n"
|
||||||
"move.b (%[source], %%d1), %%d4 \n"
|
"move.b (%[source], %%d1), %%d4 \n"
|
||||||
|
@ -551,9 +549,10 @@ void R_DrawSpan (void)
|
||||||
"endspanloop: \n"
|
"endspanloop: \n"
|
||||||
: /* outputs */
|
: /* outputs */
|
||||||
: /* inputs */
|
: /* inputs */
|
||||||
|
[ten] "d"(10),
|
||||||
[count] "d" (ds_x2-ds_x1+1),
|
[count] "d" (ds_x2-ds_x1+1),
|
||||||
[xfrac] "d" (ds_xfrac),
|
[xfrac] "a" (ds_xfrac),
|
||||||
[yfrac] "d" (ds_yfrac),
|
[yfrac] "a" (ds_yfrac),
|
||||||
[source] "a" (ds_source),
|
[source] "a" (ds_source),
|
||||||
[colormap] "a" (ds_colormap),
|
[colormap] "a" (ds_colormap),
|
||||||
[dest] "a" (topleft+ds_y*SCREENWIDTH +ds_x1),
|
[dest] "a" (topleft+ds_y*SCREENWIDTH +ds_x1),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue