Date: Wed, 8 Apr 2009 23:22:51 +0200 From: Roman Divacky <rdivacky@FreeBSD.org> To: Ed Schouten <ed@FreeBSD.org> 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 Message-ID: <20090408212251.GA28110@freebsd.org> In-Reply-To: <200904081906.n38J6ln1071504@svn.freebsd.org> References: <200904081906.n38J6ln1071504@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090408212251.GA28110>