From owner-svn-src-all@FreeBSD.ORG Fri Oct 1 13:38:47 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 2FD7C106566B; Fri, 1 Oct 2010 13:38:47 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id DABA68FC19; Fri, 1 Oct 2010 13:38:46 +0000 (UTC) Received: from lev.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 724359CB0D0; Fri, 1 Oct 2010 15:22:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by lev.vlakno.cz (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QqozK-nV+MkR; Fri, 1 Oct 2010 15:22:34 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E30A89CB12C; Fri, 1 Oct 2010 15:22:33 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.4/8.14.4/Submit) id o91DMXdL083572; Fri, 1 Oct 2010 15:22:33 +0200 (CEST) (envelope-from rdivacky) Date: Fri, 1 Oct 2010 15:22:33 +0200 From: Roman Divacky To: Jilles Tjoelker Message-ID: <20101001132233.GA83116@freebsd.org> References: <201010011310.o91DABUU007534@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010011310.o91DABUU007534@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r213326 - head/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: Fri, 01 Oct 2010 13:38:47 -0000 On Fri, Oct 01, 2010 at 01:10:11PM +0000, Jilles Tjoelker wrote: > Author: jilles > Date: Fri Oct 1 13:10:11 2010 > New Revision: 213326 > URL: http://svn.freebsd.org/changeset/base/213326 > > Log: > 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. there's "rep cmps" in bcmp.S and memcmp.S in both amd64/i386 they both have C counterparts, no idea how fast those are (they are going char by char). does this wisdom apply to those too?