diff options
| author | Olivier Houchard <cognet@FreeBSD.org> | 2004-09-23 23:10:56 +0000 |
|---|---|---|
| committer | Olivier Houchard <cognet@FreeBSD.org> | 2004-09-23 23:10:56 +0000 |
| commit | 3e3aced3354bdc75a1c254f161a76a6e0d41b688 (patch) | |
| tree | 2406fb962c2cc1d7349148ea15c885cc371d5b55 /lib/libc/arm/string | |
| parent | 57628e38acd99210bf757c3462d32cc72c469ffb (diff) | |
Notes
Diffstat (limited to 'lib/libc/arm/string')
| -rw-r--r-- | lib/libc/arm/string/memcmp.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/arm/string/memcmp.S b/lib/libc/arm/string/memcmp.S index e52e4f064d69e..5b1a0a52ff8b4 100644 --- a/lib/libc/arm/string/memcmp.S +++ b/lib/libc/arm/string/memcmp.S @@ -83,8 +83,8 @@ ENTRY(memcmp) bne .Lmemcmp_bytewise2 /* Badly aligned. Do it the slow way */ /* Word-align the addresses, if necessary */ - and r3, r1, #0x03 - rsbs r3, r3, #0x03 + sub r3, r1, #0x05 + ands r3, r3, #0x03 add r3, r3, r3, lsl #1 addne pc, pc, r3, lsl #3 nop |
