From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753711AbdCNAzA (ORCPT ); Mon, 13 Mar 2017 20:55:00 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33019 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554AbdCNAy5 (ORCPT ); Mon, 13 Mar 2017 20:54:57 -0400 Subject: Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer arithmetic To: Doug Berger References: <20170314004142.4746-1-opendmb@gmail.com> <20170314004142.4746-4-opendmb@gmail.com> Cc: robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, rafal@milecki.pl, xow@google.com, joel@jms.id.au, jon.mason@broadcom.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pgynther@google.com, jaedon.shin@gmail.com From: Florian Fainelli Message-ID: <561fe914-d768-69a6-9b5a-5384dd613690@gmail.com> Date: Mon, 13 Mar 2017 17:54:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170314004142.4746-4-opendmb@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Florian Fainelli -- Florian From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [PATCH net-next 03/12] net: bcmgenet: simplify circular pointer arithmetic Date: Mon, 13 Mar 2017 17:54:47 -0700 Message-ID: <561fe914-d768-69a6-9b5a-5384dd613690@gmail.com> References: <20170314004142.4746-1-opendmb@gmail.com> <20170314004142.4746-4-opendmb@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, rafal-g1n6cQUeyibVItvQsEIGlw@public.gmane.org, xow-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org, jon.mason-dY08KVG/lbpWk0Htik3J/w@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, pgynther-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org, jaedon.shin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org To: Doug Berger Return-path: In-Reply-To: <20170314004142.4746-4-opendmb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org 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 Reviewed-by: Florian Fainelli -- Florian -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html