Date: Tue, 20 Apr 2010 22:57:06 +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-8@freebsd.org Subject: svn commit: r206952 - stable/8/lib/libz Message-ID: <201004202257.o3KMv6lQ070248@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Tue Apr 20 22:57:05 2010 New Revision: 206952 URL: http://svn.freebsd.org/changeset/base/206952 Log: MFC assembler version of match functions for amd64 and i386(*). This gives approximately 15% improvement on compression case. (*) i386 assembler version is enabled ONLY when MACHINE_CPU have 'i686' which is not default on FreeBSD/i386. One can specify for instance CPUTYPE=pentium4 in /etc/make.conf to get this feature. Added: - copied from r206950, user/delphij/libz-8/contrib/ Directory Properties: stable/8/lib/libz/contrib/ (props changed) Modified: stable/8/lib/libz/Makefile Directory Properties: stable/8/lib/libz/ (props changed) Modified: stable/8/lib/libz/Makefile ============================================================================== --- stable/8/lib/libz/Makefile Tue Apr 20 22:55:07 2010 (r206951) +++ stable/8/lib/libz/Makefile Tue Apr 20 22:57:05 2010 (r206952) @@ -19,6 +19,18 @@ SRCS = adler32.c compress.c crc32.c gzio zutil.c inflate.c inftrees.c inffast.c zopen.c infback.c INCS= zconf.h zlib.h +.if ${MACHINE_ARCH} == "i386" && ${MACHINE_CPU:M*i686*} +.PATH: ${.CURDIR}/contrib/asm686 +SRCS+= match.S +CFLAGS+= -DASMV -DNO_UNDERLINE +.endif + +.if ${MACHINE_ARCH} == "amd64" +.PATH: ${.CURDIR}/contrib/gcc_gvmat64 +SRCS+= gvmat64.S +CFLAGS+= -DASMV -DNO_UNDERLINE +.endif + minigzip: all minigzip.o $(CC) -o minigzip minigzip.o -L. -lz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004202257.o3KMv6lQ070248>