linux-mips
[Top] [All Lists]

Re: MIPS checksum bug

To: macro@linux-mips.org
Subject: Re: MIPS checksum bug
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Thu, 18 Sep 2008 00:27:05 +0900 (JST)
Cc: u1@terran.org, linux-mips@linux-mips.org
In-reply-to: <Pine.LNX.4.55.0809171501450.17103@cliff.in.clinika.pl>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.LNX.4.55.0809171104290.17103@cliff.in.clinika.pl> <20080917.222350.41199051.anemo@mba.ocn.ne.jp> <Pine.LNX.4.55.0809171501450.17103@cliff.in.clinika.pl>
Sender: linux-mips-bounce@linux-mips.org
On Wed, 17 Sep 2008 15:46:56 +0100 (BST), "Maciej W. Rozycki" 
<macro@linux-mips.org> wrote:
> > Well, csum_partial()'s return value is __wsum (32-bit).  So strictly
> > there is no need to folding into 16-bit.
> 
>  Hmm, what's the purpose of doing the fold in csum_partial() then?

Well, maybe odd-byte handling requires 16-bit holded values?

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>