svn commit: r206941 - user/delphij/libz-8

Xin LI delphij at FreeBSD.org
Tue Apr 20 22:15:41 UTC 2010


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
 


More information about the svn-src-user mailing list