aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/amd64/string
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-09-29 07:40:52 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-09-29 07:40:52 +0000
commit275c893dab216b6851f7bb1d89bcb1d31924b451 (patch)
tree61d058a907bbfe9460cd4c1d0791af15661529b2 /lib/libc/amd64/string
parent9d967dd27d212ee960d806801d641ed9eb564a34 (diff)
downloadsrc-275c893dab216b6851f7bb1d89bcb1d31924b451.tar.gz
src-275c893dab216b6851f7bb1d89bcb1d31924b451.zip
amd64: remove unnecessary cld from libc memcpy/bcopy
The ABI specifies the direction forward on function call, making the cld instruction redundant. Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=339011
Diffstat (limited to 'lib/libc/amd64/string')
-rw-r--r--lib/libc/amd64/string/bcopy.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/amd64/string/bcopy.S b/lib/libc/amd64/string/bcopy.S
index eca7a23d7721..9446e75b8053 100644
--- a/lib/libc/amd64/string/bcopy.S
+++ b/lib/libc/amd64/string/bcopy.S
@@ -60,7 +60,6 @@ ENTRY(bcopy)
subq %rsi,%r8
cmpq %rcx,%r8 /* overlapping? */
jb 1f
- cld /* nope, copy forwards. */
shrq $3,%rcx /* copy by words */
rep
movsq