Subject: Re: about powerpc version of in{,4}_cksum
To: Matt Thomas <matt@3am-software.com>
From: Ignatios Souvatzis <is@netbsd.org>
List: port-powerpc
Date: 08/02/2002 21:58:27
Regards,

On Wed, Jul 31, 2002 at 08:44:12PM -0700, Matt Thomas wrote:
> At 11:07 AM 7/30/2002, Matt Thomas wrote:
> >Well, for the G4 case I plan on getting a AltiVec implemention
> >of in_cksum working shortly.
> 
> Well, I've written a such a beast and it tends to be 3 times
> as fast as either the netinet or the powerpc version.  The cross
> over point where AltiVec is faster seems to be about 32 bytes.
> 
> I have a few more things to clean up but it's looking very
> promising.  I hope to check it in in a few days.

Wouldn't this force us to save the Altivec registers not only on user-user
context switch, but already at kernel entry?

(I have no idea how it is done currently...)

Regards,
	-is
-- 
seal your e-mail: http://www.gnupg.org/