diff options
author | sam <sam@FreeBSD.org> | 2009-05-06 01:50:04 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-05-06 01:50:04 +0000 |
commit | 3567962cfa25f07a008441653e2cea7274feb8f8 (patch) | |
tree | 780a9416dbdf92a9b086639c09cfc00de317a05e /lib/libc/arm | |
parent | 79b0c0a2c83aabd884823126315ccd00371c29b4 (diff) | |
download | FreeBSD-src-3567962cfa25f07a008441653e2cea7274feb8f8.zip FreeBSD-src-3567962cfa25f07a008441653e2cea7274feb8f8.tar.gz |
revert r191633; this breaks at91 & xscale (likely all arm)
Diffstat (limited to 'lib/libc/arm')
-rw-r--r-- | lib/libc/arm/string/strncmp.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/arm/string/strncmp.S b/lib/libc/arm/string/strncmp.S index 5a2c422..d172264 100644 --- a/lib/libc/arm/string/strncmp.S +++ b/lib/libc/arm/string/strncmp.S @@ -33,10 +33,10 @@ __FBSDID("$FreeBSD$"); ENTRY(strncmp) -/* if (len == 0) return 0 */ - cmp r2, #0 - moveq r0, #0 - RETeq +/* if ((len - 1) < 0) return 0 */ + subs r2, r2, #1 + movmi r0, #0 + movmi pc, lr /* ip == last src address to compare */ add ip, r0, r2 |