Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754351AbYJaJWR (ORCPT ); Fri, 31 Oct 2008 05:22:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753260AbYJaJWA (ORCPT ); Fri, 31 Oct 2008 05:22:00 -0400 Received: from lazybastard.de ([212.112.238.170]:52393 "EHLO longford.logfs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754088AbYJaJWA (ORCPT ); Fri, 31 Oct 2008 05:22:00 -0400 Date: Fri, 31 Oct 2008 10:20:55 +0100 From: =?utf-8?B?SsO2cm4=?= Engel To: Geert Uytterhoeven Cc: Christian Borntraeger , Pavel Machek , linux-kernel@vger.kernel.org Subject: Re: [RFC] B+Tree library Message-ID: <20081031092054.GC18182@logfs.org> References: <20081026124643.GA1328@logfs.org> <20081030174300.GA1773@ucw.cz> <20081030175844.GC7157@logfs.org> <200810310738.46326.borntraeger@de.ibm.com> <20081031073507.GB18182@logfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 838 Lines: 26 On Fri, 31 October 2008 10:16:27 +0100, Geert Uytterhoeven wrote: > > Where's the MIN/MAX? ;-) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define NODESIZE MAX(L1_CACHE_BYTES, 128) struct btree_geo btree_geo32 = { .keylen = 1, .no_pairs = NODESIZE / sizeof(long) / 2, }; /me senses a bikeshed discussion. Jörn -- You cannot suppose that Moliere ever troubled himself to be original in the matter of ideas. You cannot suppose that the stories he tells in his plays have never been told before. They were culled, as you very well know. -- Andre-Louis Moreau in Scarabouche -- 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/