Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262330AbTKYRyh (ORCPT ); Tue, 25 Nov 2003 12:54:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262491AbTKYRyh (ORCPT ); Tue, 25 Nov 2003 12:54:37 -0500 Received: from holomorphy.com ([199.26.172.102]:33467 "EHLO holomorphy") by vger.kernel.org with ESMTP id S262330AbTKYRyg (ORCPT ); Tue, 25 Nov 2003 12:54:36 -0500 Date: Tue, 25 Nov 2003 09:54:15 -0800 From: William Lee Irwin III To: Antonio Vargas Cc: Thomas Schlichter , Jes Sorensen , Alexander Viro , Andrew Morton , linux-kernel@vger.kernel.org, jbarnes@sgi.com, steiner@sgi.com Subject: Re: hash table sizes Message-ID: <20031125175415.GC8039@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Antonio Vargas , Thomas Schlichter , Jes Sorensen , Alexander Viro , Andrew Morton , linux-kernel@vger.kernel.org, jbarnes@sgi.com, steiner@sgi.com References: <16323.23221.835676.999857@gargle.gargle.HOWL> <20031125134222.GA8039@holomorphy.com> <200311251725.07573.schlicht@uni-mannheim.de> <20031125175215.GB30083@wind.cocodriloo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031125175215.GB30083@wind.cocodriloo.com> Organization: The Domain of Holomorphy User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 629 Lines: 17 On Tue, Nov 25, 2003 at 06:52:15PM +0100, Antonio Vargas wrote: > is fls(x) sort-of log2(x) via some "find-highest-bit-set"? > I recall discussing something related with Jesse Barnes > last 5 november (search for "[DMESG] cpumask_t in action" in lkml). > [SNIP] > Greets, Antonio Vargas fls() computes floor(lg(n)) via "find highest bit", yes. It stands for "find last set". -- wli - 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/