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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"