Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 05:38:57 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r319283 - stable/10/lib/libz
Message-ID:  <201705310538.v4V5cveI044027@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed May 31 05:38:57 2017
New Revision: 319283
URL: https://svnweb.freebsd.org/changeset/base/319283

Log:
  MFC r316635:
  
  Enable 16-bit longest_match for x86.
  
  This gives a ~2% improvement in compression tests.

Modified:
  stable/10/lib/libz/Makefile
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libz/Makefile
==============================================================================
--- stable/10/lib/libz/Makefile	Wed May 31 05:37:51 2017	(r319282)
+++ stable/10/lib/libz/Makefile	Wed May 31 05:38:57 2017	(r319283)
@@ -39,19 +39,9 @@ SRCS+=		uncompr.c
 SRCS+=		zopen.c
 SRCS+=		zutil.c
 
-#.if ${MACHINE_ARCH} == "i386" && ${MACHINE_CPU:M*i686*}
-#.PATH:		${ZLIBSRC}/contrib/asm686
-#SRCS+=		match.S
-#CFLAGS+=	-DASMV -DNO_UNDERLINE
-#ACFLAGS+=	-Wa,--noexecstack
-#.endif
-
-#.if ${MACHINE_ARCH} == "amd64"
-#.PATH:		${ZLIBSRC}/contrib/gcc_gvmat64
-#SRCS+=		gvmat64.S
-#CFLAGS+=	-DASMV -DNO_UNDERLINE
-#ACFLAGS+=	-Wa,--noexecstack
-#.endif
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64
+CFLAGS+=	-DUNALIGNED_OK
+.endif
 
 VERSION_DEF=	${.CURDIR}/Versions.def
 SYMBOL_MAPS=	${.CURDIR}/Symbol.map



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