From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by wr-out-0506.google.com with SMTP id 57so1472325wri for ; Tue, 22 May 2007 01:45:07 -0700 (PDT) Message-ID: <84144f020705220145vb96b91eqa0ef6f1c25d1e5ff@mail.gmail.com> Date: Tue, 22 May 2007 11:45:06 +0300 From: "Pekka Enberg" Subject: Re: SLUB: Use ilog2 instead of series of constant comparisons. In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: akpm@linux-foundation.org, linux-mm@kvack.org List-ID: On 5/21/07, Christoph Lameter wrote: > I finally found a way to get rid of the nasty list of comparisions in > slub_def.h. ilog2 seems to work right for constants. Nice cleanup Christoph! Looks good to me. Acked-by: Pekka Enberg -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org