Author: mjg
Date: Sat Sep 29 07:40:52 2018
New Revision: 339011
URL: https://svnweb.freebsd.org/changeset/base/339011

Log:
  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)

Modified:
  head/lib/libc/amd64/string/bcopy.S

Modified: head/lib/libc/amd64/string/bcopy.S
==============================================================================
--- head/lib/libc/amd64/string/bcopy.S  Sat Sep 29 06:54:52 2018        
(r339010)
+++ head/lib/libc/amd64/string/bcopy.S  Sat Sep 29 07:40:52 2018        
(r339011)
@@ -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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to