Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2018 19:39:05 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r339243 - in projects/openssl111: sys/amd64/amd64 usr.sbin/nscd
Message-ID:  <201810081939.w98Jd5SI031131@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Mon Oct  8 19:39:05 2018
New Revision: 339243
URL: https://svnweb.freebsd.org/changeset/base/339243

Log:
  Fix a mismerge from head to projects/openssl111.
  
  r339213 was cherry-picked back to head from the project branch, which
  caused a conflict.  This commit properly records the mergeinfo from
  head.
  
  r339205 was missed, and r339214 is required for reintegration.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/openssl111/sys/amd64/amd64/support.S
  projects/openssl111/usr.sbin/nscd/nscd.conf.5
Directory Properties:
  projects/openssl111/   (props changed)
  projects/openssl111/crypto/openssh/   (props changed)

Modified: projects/openssl111/sys/amd64/amd64/support.S
==============================================================================
--- projects/openssl111/sys/amd64/amd64/support.S	Mon Oct  8 19:15:58 2018	(r339242)
+++ projects/openssl111/sys/amd64/amd64/support.S	Mon Oct  8 19:39:05 2018	(r339243)
@@ -320,43 +320,92 @@ END(memcpy_erms)
  * memset(dst, c,   len)
  *        rdi, rsi, rdx
  */
-ENTRY(memset_std)
+.macro MEMSET erms
 	PUSH_FRAME_POINTER
 	movq	%rdi,%r9
 	movq	%rdx,%rcx
 	movzbq	%sil,%r8
 	movabs	$0x0101010101010101,%rax
 	imulq	%r8,%rax
-	cmpq	$15,%rcx
-	jbe	1f
-	shrq	$3,%rcx
-	rep
-	stosq
-	movq	%rdx,%rcx
-	andq	$7,%rcx
-	jne	1f
+
+	cmpq	$32,%rcx
+	jb	1016f
+
+	cmpq	$256,%rcx
+	ja	1256f
+
+1032:
+	movq	%rax,(%rdi)
+	movq	%rax,8(%rdi)
+	movq	%rax,16(%rdi)
+	movq	%rax,24(%rdi)
+	leaq	32(%rdi),%rdi
+	subq	$32,%rcx
+	cmpq	$32,%rcx
+	jae	1032b
+	cmpb	$0,%cl
+	je	1000f
+1016:
+	cmpb	$16,%cl
+	jl	1008f
+	movq	%rax,(%rdi)
+	movq	%rax,8(%rdi)
+	subb	$16,%cl
+	jz	1000f
+	leaq	16(%rdi),%rdi
+1008:
+	cmpb	$8,%cl
+	jl	1004f
+	movq	%rax,(%rdi)
+	subb	$8,%cl
+	jz	1000f
+	leaq	8(%rdi),%rdi
+1004:
+	cmpb	$4,%cl
+	jl	1002f
+	movl	%eax,(%rdi)
+	subb	$4,%cl
+	jz	1000f
+	leaq	4(%rdi),%rdi
+1002:
+	cmpb	$2,%cl
+	jl	1001f
+	movw	%ax,(%rdi)
+	subb	$2,%cl
+	jz	1000f
+	leaq	2(%rdi),%rdi
+1001:
+	cmpb	$1,%cl
+	jl	1000f
+	movb	%al,(%rdi)
+1000:
 	movq	%r9,%rax
 	POP_FRAME_POINTER
 	ret
 	ALIGN_TEXT
-1:
+1256:
+.if \erms == 1
 	rep
 	stosb
+.else
+	shrq	$3,%rcx
+	rep
+	stosq
+	movq	%rdx,%rcx
+	andb	$7,%cl
+	jne	1004b
+.endif
 	movq	%r9,%rax
 	POP_FRAME_POINTER
 	ret
+.endm
+
+ENTRY(memset_std)
+	MEMSET erms=0
 END(memset_std)
 
 ENTRY(memset_erms)
-	PUSH_FRAME_POINTER
-	movq	%rdi,%r9
-	movq	%rdx,%rcx
-	movb	%sil,%al
-	rep
-	stosb
-	movq	%r9,%rax
-	POP_FRAME_POINTER
-	ret
+	MEMSET erms=1
 END(memset_erms)
 
 /* fillw(pat, base, cnt) */

Modified: projects/openssl111/usr.sbin/nscd/nscd.conf.5
==============================================================================
--- projects/openssl111/usr.sbin/nscd/nscd.conf.5	Mon Oct  8 19:15:58 2018	(r339242)
+++ projects/openssl111/usr.sbin/nscd/nscd.conf.5	Mon Oct  8 19:39:05 2018	(r339243)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd April 30, 2006
+.Dd October 6, 2018
 .Dt NSCD.CONF 5
 .Os
 .Sh NAME
@@ -153,6 +153,3 @@ symbol at the beginning of the line for comments.
 .Xr nscd 8
 .Sh AUTHORS
 .An Michael Bushkov Aq Mt bushman@FreeBSD.org
-.Sh BUGS
-Please send bug reports and suggestions to
-.Aq Mt bushman@FreeBSD.org .



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