[PATCH 0/5] IP checksum improvements

Ondrej Zajicek santiago at crfreenet.org
Mon Apr 26 10:09:36 CEST 2010

On Mon, Apr 26, 2010 at 01:57:29AM +0200, Joakim Tjernlund wrote:
> > Ah, now I think I know. The while(buf < end) is optimized for
> > post inc so that is why.
> tested little and was surprised, only 3-5% slower with the while loop
> compared to my for loop, it is mainly the post increment that does that.
> On x86 I can hardly see any difference between post and pre inc.

I also got 5% slowdown on MIPS. If i replaced while(buf < end) with
while(buf != end), i got no slowdown.

> However, gcc won't inline add32 as it is too big on ppc and that
> is a disaster. Could you add inline to add32?

There is 'inline' in a current git.

Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20100426/36472c28/attachment-0001.asc>

More information about the Bird-users mailing list