From 6058e0cdb7a66acd11f1004db555b7244112cefa Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 6 Mar 2008 18:25:29 +0000 Subject: Minor cleanups mostly for consistency. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16539 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/grey_coldfire.S | 10 +++++----- 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 db9b11b94b..39df087a85 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 c59c09eaf2..f77d5b24cd 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 -- cgit v1.2.3