summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-22 07:44:21 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-22 07:44:21 +0000
commit292b77b0974b228d1b66f70445808ffec57cc5c9 (patch)
treec8b125afdbd0c7ace9960cf96944210c6c5d8aea
parent6aa8525f24f3494a95918d83290eee846df57b79 (diff)
Coldfire: slight memset() optimisation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6799 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/common/memset_a.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/memset_a.S b/firmware/common/memset_a.S
index c3da66874b..c3499c60c3 100644
--- a/firmware/common/memset_a.S
+++ b/firmware/common/memset_a.S
@@ -166,8 +166,8 @@ memset:
bhi.b .loop_b1
.end_b1:
- move.l %a0,%d1
- add.l #31,%d1
+ moveq.l #31,%d1
+ add.l %a0,%d1
and.l #0xFFFFFFF0,%d1 /* %d1 = first line bound + 16 */
cmp.l %d1,%a1 /* at least one full line to fill? */
blo.b .no_lines /* no, jump to longword loop */