Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204AbaAQJzU (ORCPT ); Fri, 17 Jan 2014 04:55:20 -0500 Received: from mx0.aculab.com ([213.249.233.131]:39379 "HELO mx0.aculab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751702AbaAQJzO convert rfc822-to-8bit (ORCPT ); Fri, 17 Jan 2014 04:55:14 -0500 From: David Laight To: "'Hannes Frederic Sowa'" , "netdev@vger.kernel.org" CC: Daniel Borkmann , Jakub Zawadzki , Eric Dumazet , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH net-next v2 2/3] net: add trim helper and convert users Thread-Topic: [PATCH net-next v2 2/3] net: add trim helper and convert users Thread-Index: AQHPExsCt6Yq4rhPdkGWOeoK2O8P2ZqIrT/A Date: Fri, 17 Jan 2014 09:52:58 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6D45EAC0@AcuExch.aculab.com> References: <1389918519-23779-1-git-send-email-hannes@stressinduktion.org> <1389918519-23779-3-git-send-email-hannes@stressinduktion.org> In-Reply-To: <1389918519-23779-3-git-send-email-hannes@stressinduktion.org> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hannes Frederic Sowa ... > +/** > + * trim - perform a reciprocal multiplication in order to "clamp" a > + * value into range [0, ep_ro), where the upper interval > + * endpoint is right-open. This is useful, e.g. for accessing > + * a index of an array containing ep_ro elements, for example. > + * Think of it as sort of modulus, only that the result isn't > + * that of modulo. ;) > + * More: http://homepage.cs.uiowa.edu/~jones/bcd/divide.html It isn't appropriate to put urls into code comments (or commit messages). They are very likely to get out of date. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/