From owner-svn-src-stable@FreeBSD.ORG Tue Apr 20 22:57:06 2010 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 445CE1065675; Tue, 20 Apr 2010 22:57:06 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 332DC8FC17; Tue, 20 Apr 2010 22:57:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o3KMv6Wo070250; Tue, 20 Apr 2010 22:57:06 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o3KMv6lQ070248; Tue, 20 Apr 2010 22:57:06 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201004202257.o3KMv6lQ070248@svn.freebsd.org> From: Xin LI Date: Tue, 20 Apr 2010 22:57:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r206952 - stable/8/lib/libz X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2010 22:57:06 -0000 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