From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20281 invoked by alias); 18 Jul 2007 16:17:46 -0000 Received: (qmail 20264 invoked by uid 22791); 18 Jul 2007 16:17:46 -0000 X-Spam-Check-By: sourceware.org Received: from are.twiddle.net (HELO are.twiddle.net) (64.81.246.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Jul 2007 16:17:42 +0000 Received: from are.twiddle.net (localhost.localdomain [127.0.0.1]) by are.twiddle.net (8.13.8/8.13.6) with ESMTP id l6IGHX2q025696; Wed, 18 Jul 2007 09:17:33 -0700 Received: (from rth@localhost) by are.twiddle.net (8.13.8/8.13.8/Submit) id l6IGHVGl025695; Wed, 18 Jul 2007 09:17:31 -0700 Date: Wed, 18 Jul 2007 16:17:00 -0000 From: Richard Henderson To: Jakub Jelinek Cc: Ulrich Drepper , Glibc hackers , Richard Henderson , Steven Munroe Subject: Re: [PATCH] Optimized __sched_cpucount for alphaev67, power5 and above and ia64 Message-ID: <20070718161731.GB25586@twiddle.net> Mail-Followup-To: Jakub Jelinek , Ulrich Drepper , Glibc hackers , Richard Henderson , Steven Munroe References: <20070717204719.GY4603@sunsite.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070717204719.GY4603@sunsite.mff.cuni.cz> User-Agent: Mutt/1.4.2.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00034.txt.bz2 On Tue, Jul 17, 2007 at 10:47:19PM +0200, Jakub Jelinek wrote: > in hardware. For alpha I have used inline assembly, because > __builtin_popcount would only expand to ctpop if the selected gcc > arch is ev67, which isn't sure. #ifdef __alpha_cix__ # define POPCNT(l) __builtin_popcountl (l) #endif r~