[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <561fe914-d768-69a6-9b5a-5384dd613690@gmail.com>
Date: Mon, 13 Mar 2017 17:54:47 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Doug Berger <opendmb@...il.com>
Cc: robh+dt@...nel.org, mark.rutland@....com, davem@...emloft.net,
rafal@...ecki.pl, xow@...gle.com, joel@....id.au,
jon.mason@...adcom.com, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
pgynther@...gle.com, jaedon.shin@...il.com
Subject: Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer
arithmetic
On 03/13/2017 05:41 PM, Doug Berger wrote:
> A 2's complement subtraction will always do a borrow, so masking
> off the sign bits is the same as conditionally adding (mask+1).
>
> Signed-off-by: Doug Berger <opendmb@...il.com>
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
--
Florian
Powered by blists - more mailing lists