summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-05-31 05:38:57 +0000
committerdelphij <delphij@FreeBSD.org>2017-05-31 05:38:57 +0000
commitb8be52d42d371669ae46f5cc3548eecd1e429da8 (patch)
tree08536dcd44ebd3148d900ded5ef1189afbe42541 /lib
parent3d3d5de649e88021ce1c84e4ecc827e4c818bffd (diff)
downloadFreeBSD-src-b8be52d42d371669ae46f5cc3548eecd1e429da8.zip
FreeBSD-src-b8be52d42d371669ae46f5cc3548eecd1e429da8.tar.gz
MFC r316635:
Enable 16-bit longest_match for x86. This gives a ~2% improvement in compression tests.
Diffstat (limited to 'lib')
-rw-r--r--lib/libz/Makefile16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/libz/Makefile b/lib/libz/Makefile
index 28eb4e4..900180a 100644
--- a/lib/libz/Makefile
+++ b/lib/libz/Makefile
@@ -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
OpenPOWER on IntegriCloud