svn commit: r190853 - in head/sys: amd64/include i386/include

Roman Divacky rdivacky at FreeBSD.org
Wed Apr 8 14:23:52 PDT 2009


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.


More information about the svn-src-all mailing list