From owner-cvs-src-old@FreeBSD.ORG Fri Oct 1 13:10:28 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 D29B51065670 for ; Fri, 1 Oct 2010 13:10:28 +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 C0D1C8FC18 for ; Fri, 1 Oct 2010 13:10:28 +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 o91DASnc052571 for ; Fri, 1 Oct 2010 13:10:28 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o91DASj6052570 for cvs-src-old@freebsd.org; Fri, 1 Oct 2010 13:10:28 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201010011310.o91DASj6052570@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Fri, 1 Oct 2010 13:10:11 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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: Fri, 01 Oct 2010 13:10:28 -0000 jilles 2010-10-01 13:10:11 UTC FreeBSD src repository Modified files: lib/libc/i386/string Makefile.inc Removed files: lib/libc/i386/string strlen.S Log: SVN rev 213326 on 2010-10-01 13:10:11Z by jilles 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. MFC after: 2 weeks Revision Changes Path 1.14 +1 -1 src/lib/libc/i386/string/Makefile.inc 1.11 +0 -54 src/lib/libc/i386/string/strlen.S (dead)