OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9635ca0
)
make sure we treat count as size_t, not ssize_t ... fixes with help from khem
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 16 Sep 2005 23:51:31 +0000
(23:51 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 16 Sep 2005 23:51:31 +0000
(23:51 -0000)
libc/string/arm/strncmp.S
patch
|
blob
|
history
diff --git
a/libc/string/arm/strncmp.S
b/libc/string/arm/strncmp.S
index
39344db
..
46f5f50
100644
(file)
--- a/
libc/string/arm/strncmp.S
+++ b/
libc/string/arm/strncmp.S
@@
-35,10
+35,11
@@
.align 4
strncmp:
- /* if ((len - 1) < 0) return 0 */
+ /* if (len == 0) return 0 */
+ cmp r2, #0
+ moveq r0, #0
+ moveq pc, lr
subs r2, r2, #1
- movmi r0, #0
- movmi pc, lr
/* ip == last src address to compare */
add ip, r0, r2