Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756836Ab0BCPQ2 (ORCPT ); Wed, 3 Feb 2010 10:16:28 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:35708 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756702Ab0BCPQX (ORCPT ); Wed, 3 Feb 2010 10:16:23 -0500 Subject: Re: [PATCH 2/5] bitops: compile time optimization for hweight_long(CONSTANT) From: Peter Zijlstra To: Andrew Morton Cc: Wu Fengguang , LKML , Jamie Lokier , Roland Dreier , Al Viro , "linux-fsdevel@vger.kernel.org" , Ingo Molnar , "H. Peter Anvin" In-Reply-To: <20100203070825.e36b3932.akpm@linux-foundation.org> References: <20100130094515.475881280@intel.com> <20100130094957.692671259@intel.com> <20100201124825.cc024f2a.akpm@linux-foundation.org> <20100203133951.GA24357@localhost> <20100203070825.e36b3932.akpm@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 03 Feb 2010 16:15:57 +0100 Message-ID: <1265210157.24455.646.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 715 Lines: 20 On Wed, 2010-02-03 at 07:08 -0800, Andrew Morton wrote: > On Wed, 3 Feb 2010 21:39:51 +0800 Wu Fengguang wrote: > > > Is there an official lowest GCC version that Linux supports? > > Documentation/Changes says gcc-3.2. Anyway, its not like that macro I used isn't straight forward. Not much a builtin can do better. The only benefit the builtin has is possibly use machine popcnt instructions but we already deal with that in the kernel. -- 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/