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:
parent
9d967dd27d
commit
275c893dab
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user