Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Sep 2018 07:40:52 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339011 - head/lib/libc/amd64/string
Message-ID:  <201809290740.w8T7eqLx019738@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809290740.w8T7eqLx019738>