From owner-svn-src-all@FreeBSD.ORG Wed Apr 8 21:23:51 2009 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 BE8031065672; Wed, 8 Apr 2009 21:23:51 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id 3051F8FC12; Wed, 8 Apr 2009 21:23:49 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 15F649CB080; Wed, 8 Apr 2009 23:22:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pZr8C2oWSGvB; Wed, 8 Apr 2009 23:22:51 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id C370C9CB109; Wed, 8 Apr 2009 23:22:51 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n38LMpv1028458; Wed, 8 Apr 2009 23:22:51 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 8 Apr 2009 23:22:51 +0200 From: Roman Divacky To: Ed Schouten Message-ID: <20090408212251.GA28110@freebsd.org> References: <200904081906.n38J6ln1071504@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200904081906.n38J6ln1071504@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: r190853 - in head/sys: amd64/include i386/include 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: Wed, 08 Apr 2009 21:23:52 -0000 On Wed, Apr 08, 2009 at 07:06:47PM +0000, Ed Schouten wrote: > Author: ed > Date: Wed Apr 8 19:06:47 2009 > New Revision: 190853 > URL: http://svn.freebsd.org/changeset/base/190853 > > Log: > Implement __bswap16() without using inline assembly. > > Most compilers nowadays (including GCC) are smart enough to know what's > going on and generate more efficient code anyway. my test kernel: (without the patch) text data bss dec hex filename 3695813 294882 496952 4487647 4479df kernel (with the patch) text data bss dec hex filename 3695605 294882 496952 4487439 44790f kernel so it shaves 208 bytes off the kernel in this case.