From owner-svn-src-all@FreeBSD.ORG Tue Oct 19 22:11:51 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 230EB106566C; Tue, 19 Oct 2010 22:11:51 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 109F88FC0C; Tue, 19 Oct 2010 22:11:51 +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 o9JMBoid029011; Tue, 19 Oct 2010 22:11:50 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9JMBolX029009; Tue, 19 Oct 2010 22:11:50 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201010192211.o9JMBolX029009@svn.freebsd.org> From: Jilles Tjoelker Date: Tue, 19 Oct 2010 22:11:50 +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: r214086 - stable/8/lib/libc/i386/string X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 22:11:51 -0000 Author: jilles Date: Tue Oct 19 22:11:50 2010 New Revision: 214086 URL: http://svn.freebsd.org/changeset/base/214086 Log: MFC r213326: libc: Remove the i386 assembler version of strlen(3). On anything modern, the C version, which processes a word at a time, is much faster. The Intel optimization manual explicitly warns against using REP prefixes with SCAS or CMPS, which is exactly what the assembler version does. A simple test on a Phenom II showed the C version, compiled with -O2, to be about twice as fast determining the length of 100000 strings between 0 and 255 bytes long. Deleted: stable/8/lib/libc/i386/string/strlen.S Modified: stable/8/lib/libc/i386/string/Makefile.inc Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/locale/ (props changed) stable/8/lib/libc/stdtime/ (props changed) stable/8/lib/libc/sys/ (props changed) Modified: stable/8/lib/libc/i386/string/Makefile.inc ============================================================================== --- stable/8/lib/libc/i386/string/Makefile.inc Tue Oct 19 21:43:48 2010 (r214085) +++ stable/8/lib/libc/i386/string/Makefile.inc Tue Oct 19 22:11:50 2010 (r214086) @@ -3,5 +3,5 @@ MDSRCS+=bcmp.S bcopy.S bzero.S ffs.S index.S memchr.S memcmp.S memcpy.S \ memmove.S memset.S rindex.S strcat.S strchr.S strcmp.S strcpy.S \ - strlen.S strncmp.S strrchr.S swab.S wcschr.S wcscmp.S wcslen.S \ + strncmp.S strrchr.S swab.S wcschr.S wcscmp.S wcslen.S \ wmemchr.S