diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-03-06 18:25:29 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-03-06 18:25:29 +0000 |
| commit | 6058e0cdb7a66acd11f1004db555b7244112cefa (patch) | |
| tree | 07483c6defb157fa5d7f59bb5b069df6e6144110 /apps/plugins/lib | |
| parent | cbc701c8958cc108034f38a8460bd842c72f5145 (diff) | |
| download | rockbox-6058e0cdb7a66acd11f1004db555b7244112cefa.zip rockbox-6058e0cdb7a66acd11f1004db555b7244112cefa.tar.gz rockbox-6058e0cdb7a66acd11f1004db555b7244112cefa.tar.bz2 rockbox-6058e0cdb7a66acd11f1004db555b7244112cefa.tar.xz | |
Minor cleanups mostly for consistency.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16539 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/grey_coldfire.S | 10 | ||||
| -rw-r--r-- | apps/plugins/lib/grey_sh.S | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/lib/grey_coldfire.S b/apps/plugins/lib/grey_coldfire.S index db9b11b..39df087 100644 --- a/apps/plugins/lib/grey_coldfire.S +++ b/apps/plugins/lib/grey_coldfire.S @@ -97,10 +97,11 @@ _grey_line1: subq.l #4, %d2 bhs.s .p4_loop + /* No need to correct the count, we're only testing bits from now on. */ + .p4_end: - addq.l #4, %d2 - cmp.l #2, %d2 - blo.s .p2_t_end + btst.l #1, %d2 + beq.s .p2_t_end move.w (%a1)+, %d1 move.w %d1, %d0 @@ -110,10 +111,9 @@ _grey_line1: move.b %d1, %d0 move.b (%d0.l, %a2), (%a0) addq.l #4, %a0 - subq.l #2, %d2 .p2_t_end: - tst.l %d2 + btst.l #0, %d2 beq.s .p1_t_end move.b (%a1)+, %d0 diff --git a/apps/plugins/lib/grey_sh.S b/apps/plugins/lib/grey_sh.S index c59c09e..f77d5b2 100644 --- a/apps/plugins/lib/grey_sh.S +++ b/apps/plugins/lib/grey_sh.S @@ -99,8 +99,8 @@ __grey_line1: add #16, r5 bt .p4_loop - sub r6, r4 - + /* No need to correct the count, we're only testing bits from now on. */ + .p4_end: mov #2, r0 tst r0, r4 |