Date: Tue, 20 Apr 2010 22:15:41 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r206941 - user/delphij/libz-8 Message-ID: <201004202215.o3KMFfaY060626@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Tue Apr 20 22:15:41 2010 New Revision: 206941 URL: http://svn.freebsd.org/changeset/base/206941 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 r206927, head/lib/libz/contrib/ Directory Properties: user/delphij/libz-8/contrib/ (props changed) Modified: user/delphij/libz-8/Makefile Modified: user/delphij/libz-8/Makefile ============================================================================== --- user/delphij/libz-8/Makefile Tue Apr 20 22:00:56 2010 (r206940) +++ user/delphij/libz-8/Makefile Tue Apr 20 22:15:41 2010 (r206941) @@ -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?201004202215.o3KMFfaY060626>