summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2013-07-01 09:58:34 +0000
committerWill Newton <will.newton@linaro.org>2013-07-01 09:58:34 +0000
commit5073668c61818d54189e08ca0cfa690558751870 (patch)
tree011cc1d6c36f9e60ce4636fa12c0c0a1a8292b67 /newlib/libc
parent562b70fbacf3987c231f2b1e5628f006a49a883f (diff)
downloadcygnal-5073668c61818d54189e08ca0cfa690558751870.tar.gz
cygnal-5073668c61818d54189e08ca0cfa690558751870.tar.bz2
cygnal-5073668c61818d54189e08ca0cfa690558751870.zip
memcpy-armv7a.S: Improve performance with misaligned buffers.
Adjust the conditions for entering the aligned copy loop to improve performance on mutually misaligned buffer copies. 2013-07-01 Will Newton <will.newton@linaro.org> * libc/machine/arm/memcpy-armv7a.S: Adjust entry to aligned loop to improve misaligned copy performance.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/machine/arm/memcpy-armv7a.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/machine/arm/memcpy-armv7a.S b/newlib/libc/machine/arm/memcpy-armv7a.S
index de5bf9ad8..cd7962e07 100644
--- a/newlib/libc/machine/arm/memcpy-armv7a.S
+++ b/newlib/libc/machine/arm/memcpy-armv7a.S
@@ -242,8 +242,8 @@ def_fn memcpy p2align=6
.Lcpy_not_short:
/* At least 64 bytes to copy, but don't know the alignment yet. */
str tmp2, [sp, #-FRAME_SIZE]!
- and tmp2, src, #3
- and tmp1, dst, #3
+ and tmp2, src, #7
+ and tmp1, dst, #7
cmp tmp1, tmp2
bne .Lcpy_notaligned