Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2004 13:05:31 -0600
From:      "James R. Van Artsalen" <james@jrv.org>
To:        Peter Wemm <peter@wemm.org>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: Peer review of AMD64/FreeBSD article
Message-ID:  <405209FB.7020108@jrv.org>
In-Reply-To: <200403121025.28913.peter@wemm.org>
References:  <4051A841.9020205@thejemreport.com> <200403121025.28913.peter@wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm wrote:

>The OpenSSL stuff in the FreeBSD source tree has hand-optimized i386 
>assembler code in it.  The amd64 configuration of the integrated 
>OpenSSL uses the generic C code.  Given this, I wouldn't expect them to 
>be even close.
>
>  
>
Is this worth fixing?  I could do this: there's no rocket science 
involved in porting the existing x86 code.

The main drawback is maintainability: nobody wants Yet Another Cryptic 
.S file to maintain.  But if the Powers That Be are willing to take an 
assembly file for these things and it's  believed likely to be 
worthwhile I can take a look.  To be honest I'm not sure I'd want to add 
to the maintainability problem here.

The kernel IPsec crypto routines might be a better win, except that 
nobody has complained about it yet.  No way is a .S worth it without 
complaints.

PS. The IP checksum routine is another one that could be improved.  It's 
doing 32 bits at a time right now, with no PREFETCH opcodes.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?405209FB.7020108>