Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: about powerpc version of in{,4}_cksum



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@localhost
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service
NetBSD development for Alpha, ARM, M68K, MIPS, PowerPC, SuperH, XScale, etc...



Home | Main Index | Thread Index | Old Index