From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= Subject: Re: [NETFILTER][PATCH] Re: Question about the hashlimit network mask patch Date: Wed, 26 Mar 2008 11:28:52 +0100 Message-ID: <20080326102852.GA29291@rere.qmqm.pl> References: <47E39230.90400@icdsoft.com> <47E3E861.9090707@icdsoft.com> <47E90678.7090405@icdsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Netfilter Developer Mailing List To: Jan Engelhardt Return-path: Received: from rere.qmqm.pl ([86.63.132.164]:37100 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760023AbYCZK2u (ORCPT ); Wed, 26 Mar 2008 06:28:50 -0400 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Wed, Mar 26, 2008 at 08:44:20AM +0100, Jan Engelhardt wrote: > + return htonl(ntohl(a) & ~(~(u_int32_t)0 >> l)); BTW, isn't this way faster: return a & htonl(~(~(u_int32_t)0 >> l)); -- Michal Miroslaw