From owner-cvs-src-old@FreeBSD.ORG Tue Oct 19 22:12:12 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ED571065674 for ; Tue, 19 Oct 2010 22:12:12 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1738FC1E for ; Tue, 19 Oct 2010 22:12:12 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o9JMCCvD045079 for ; Tue, 19 Oct 2010 22:12:12 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9JMCCD4045078 for cvs-src-old@freebsd.org; Tue, 19 Oct 2010 22:12:12 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201010192212.o9JMCCD4045078@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Tue, 19 Oct 2010 22:11:50 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/lib/libc/i386/string Makefile.inc strlen.S X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 22:12:12 -0000 jilles 2010-10-19 22:11:50 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libc/i386/string Makefile.inc Removed files: (Branch: RELENG_8) lib/libc/i386/string strlen.S Log: SVN rev 214086 on 2010-10-19 22:11:50Z by jilles 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. Revision Changes Path 1.13.34.2 +1 -1 src/lib/libc/i386/string/Makefile.inc 1.10.2.2 +0 -54 src/lib/libc/i386/string/strlen.S (dead)