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)
This commit is contained in:
Mateusz Guzik 2018-09-29 07:40:52 +00:00
parent 9d967dd27d
commit 275c893dab

View File

@ -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