diff options
author | delphij <delphij@FreeBSD.org> | 2017-05-31 05:37:51 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2017-05-31 05:37:51 +0000 |
commit | 573da62e657de547167c1ece9925d4b8836bef15 (patch) | |
tree | 105122b3b3efe62da6a7bfd6907c0af8fbc01e96 | |
parent | e00c2f148038314610a765fe564cf200deda7d85 (diff) | |
download | FreeBSD-src-573da62e657de547167c1ece9925d4b8836bef15.zip FreeBSD-src-573da62e657de547167c1ece9925d4b8836bef15.tar.gz |
MFC r316635:
Enable 16-bit longest_match for x86.
This gives a ~2% improvement in compression tests.
-rw-r--r-- | lib/libz/Makefile | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/libz/Makefile b/lib/libz/Makefile index cb192e7..7e1e9e8 100644 --- a/lib/libz/Makefile +++ b/lib/libz/Makefile @@ -40,19 +40,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 |