Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1599958

Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer arithmetic

From Florian Fainelli <f.fainelli@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer arithmetic
Date 2017-03-14 02:00 +0100
Message-ID <tkIYF-EG-13@gated-at.bofh.it> (permalink)
References <tkIOZ-AW-3@gated-at.bofh.it> <tkIP0-AW-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@gmail.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH net-next 03/12] net: bcmgenet: simplify circular pointer arithmetic Doug Berger <opendmb@gmail.com> - 2017-03-14 01:50 +0100
  Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer  arithmetic Florian Fainelli <f.fainelli@gmail.com> - 2017-03-14 02:00 +0100

csiph-web