Subject: Re: about powerpc version of in{,4}_cksum
To: Simon Burge <simonb@wasabisystems.com>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-powerpc
Date: 07/30/2002 10:02:59
On Tue, Jul 30, 2002 at 11:41:20PM +1000, Simon Burge wrote:
> gcc has put "n" in r0, so the "addic 0,0,0" will add the carry bit to
> "n".  Allen suggested the following:
> 
> 	addi 7,0,0; addic 7,7,0;

It occurs to me that "addic 7,0,0" would work as well and would be one
less instruction (it's outside the loop, but one instruction is still
one instruction, right?  ;-).

Thank you, Enami (and Tsubai) for looking at this, too!

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service
NetBSD development for Alpha, ARM, M68K, MIPS, PowerPC, SuperH, XScale, etc...