From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755744AbcDGJlV (ORCPT ); Thu, 7 Apr 2016 05:41:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:57128 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755712AbcDGJlT (ORCPT ); Thu, 7 Apr 2016 05:41:19 -0400 Date: Thu, 7 Apr 2016 11:41:17 +0200 From: Borislav Petkov To: Zeng Zhaoxiu Cc: zengzhaoxiu@163.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, dvlasenk@redhat.com, akpm@linux-foundation.org, dvyukov@google.com, keescook@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/30] Add x86-specific parity functions Message-ID: <20160407094117.GC3866@pd.tnic> References: <57031D9D.801@gmail.com> <1459934085-7152-1-git-send-email-zengzhaoxiu@163.com> <20160406101300.GA13719@pd.tnic> <5705DA2A.70308@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5705DA2A.70308@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 07, 2016 at 11:55:22AM +0800, Zeng Zhaoxiu wrote: > __sw_parity32 is faster than __sw_hweight32. > I don't know how many CPUs do not support the popc, if they are outdated, > use __arch_hweight32 is the easiest way. I don't really understand what you're trying to tell me here. And it's not like I didn't try. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --