Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77364
b: refs/heads/master
c: c50e19f
h: refs/heads/master
v: v3
  • Loading branch information
Yi Li authored and Bryan Wu committed Dec 21, 2007
1 parent 32ec497 commit 9833353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5bb85dfffd38714d83cf7798886462d7314b90a
refs/heads/master: c50e19f49830fb651b4b702ad2c3abcdf110b576
8 changes: 2 additions & 6 deletions trunk/arch/blackfin/lib/memcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ ENTRY(_memcpy)
/* Check for aligned data.*/

R3 = R1 | R0;
R0 = 0x3;
R3 = R3 & R0;
R1 = 0x3;
R3 = R3 & R1;
CC = R3; /* low bits set on either address? */
IF CC JUMP .Lnot_aligned;

Expand All @@ -83,7 +83,6 @@ ENTRY(_memcpy)
/* less than eight bytes... */
P2 = R2;
LSETUP(.Lthree_start, .Lthree_end) LC0=P2;
R0 = R1; /* setup src address for return */
.Lthree_start:
R3 = B[P1++] (X);
.Lthree_end:
Expand All @@ -95,7 +94,6 @@ ENTRY(_memcpy)
/* There's at least eight bytes to copy. */
P2 += -1; /* because we unroll one iteration */
LSETUP(.Lword_loops, .Lword_loope) LC0=P2;
R0 = R1;
I1 = P1;
R3 = [I1++];
#if ANOMALY_05000202
Expand All @@ -120,7 +118,6 @@ ENTRY(_memcpy)
.Lnot_aligned:
/* From here, we're copying byte-by-byte. */
LSETUP (.Lbyte_start, .Lbyte_end) LC0=P2;
R0 = R1; /* Save src address for return */
.Lbyte_start:
R1 = B[P1++] (X);
.Lbyte_end:
Expand All @@ -135,7 +132,6 @@ ENTRY(_memcpy)
* Don't bother to work out alignment for
* the reverse case.
*/
R0 = R1; /* save src for later. */
P0 = P0 + P2;
P0 += -1;
P1 = P1 + P2;
Expand Down

0 comments on commit 9833353

Please sign in to comment.