Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196655
b: refs/heads/master
c: ca5d067
h: refs/heads/master
i:
  196653: 9dced70
  196651: d07cdd3
  196647: 994ff16
  196639: 378e464
v: v3
  • Loading branch information
Andreas Schwab authored and Benjamin Herrenschmidt committed May 21, 2010
1 parent f81f0dc commit a3f5124
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 7358650e9e9a81c854dc4582b4193eb5ea500bf6
refs/heads/master: ca5d0674c37840366f04a7bbfbf78e7b5f3ce0a4
16 changes: 8 additions & 8 deletions trunk/arch/powerpc/lib/string.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ _GLOBAL(strcpy)
/* This clears out any unused part of the destination buffer,
just as the libc version does. -- paulus */
_GLOBAL(strncpy)
cmpwi 0,r5,0
PPC_LCMPI 0,r5,0
beqlr
mtctr r5
addi r6,r3,-1
Expand All @@ -39,7 +39,7 @@ _GLOBAL(strncpy)
bdnzf 2,1b /* dec ctr, branch if ctr != 0 && !cr0.eq */
bnelr /* if we didn't hit a null char, we're done */
mfctr r5
cmpwi 0,r5,0 /* any space left in destination buffer? */
PPC_LCMPI 0,r5,0 /* any space left in destination buffer? */
beqlr /* we know r0 == 0 here */
2: stbu r0,1(r6) /* clear it out if so */
bdnz 2b
Expand Down Expand Up @@ -70,8 +70,8 @@ _GLOBAL(strcmp)
blr

_GLOBAL(strncmp)
PPC_LCMPI r5,0
ble- 2f
PPC_LCMPI 0,r5,0
beq- 2f
mtctr r5
addi r5,r3,-1
addi r4,r4,-1
Expand All @@ -94,8 +94,8 @@ _GLOBAL(strlen)
blr

_GLOBAL(memcmp)
cmpwi 0,r5,0
ble- 2f
PPC_LCMPI 0,r5,0
beq- 2f
mtctr r5
addi r6,r3,-1
addi r4,r4,-1
Expand All @@ -108,8 +108,8 @@ _GLOBAL(memcmp)
blr

_GLOBAL(memchr)
cmpwi 0,r5,0
ble- 2f
PPC_LCMPI 0,r5,0
beq- 2f
mtctr r5
addi r3,r3,-1
1: lbzu r0,1(r3)
Expand Down

0 comments on commit a3f5124

Please sign in to comment.