Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752269AbcD1RvM (ORCPT ); Thu, 28 Apr 2016 13:51:12 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35265 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932AbcD1RvI (ORCPT ); Thu, 28 Apr 2016 13:51:08 -0400 MIME-Version: 1.0 In-Reply-To: <20160428164856.10120.qmail@ns.horizon.com> References: <1461843824-19853-1-git-send-email-zengzhaoxiu@163.com> <20160428164856.10120.qmail@ns.horizon.com> Date: Thu, 28 Apr 2016 19:51:06 +0200 X-Google-Sender-Auth: im7Zsx5sgIB7Y02nUoEY_ItH_wA Message-ID: Subject: Re: [patch V3] lib: GCD: add binary GCD algorithm From: Geert Uytterhoeven To: George Spelvin Cc: Andrew Morton , Peter Zijlstra , zengzhaoxiu@163.com, Rich Felker , "David S. Miller" , Helge Deller , Ivan Kokshaysky , James Hogan , "James E.J. Bottomley" , Jonas Bonn , Lennox Wu , Ley Foon Tan , alpha , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , linux-m68k , "open list:METAG ARCHITECTURE" , Linux MIPS Mailing List , Parisc List , Linux-sh list , Russell King , linux , Chen Liqin , Matt Turner , Michal Simek , nios2-dev@lists.rocketboards.org, Ralf Baechle , Richard Henderson , sparclinux , uclinux-h8-devel@lists.sourceforge.jp, Yoshinori Sato , zhaoxiu.zeng@gmail.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 25 On Thu, Apr 28, 2016 at 6:48 PM, George Spelvin wrote: > Another few comments: > > 1. Would ARCH_HAS_FAST_FFS involve fewer changes than CPU_NO_EFFICIENT_FFS? No, as you want to _disable_ ARCH_HAS_FAST_FFS / _enable_ CPU_NO_EFFICIENT_FFS as soon as you're enabling support for a CPU that doesn't support it. Logical OR is easier in both the Kconfig and C preprocessor languages than logical NAND. E.g. in Kconfig, a CPU core not supporting it can just select CPU_NO_EFFICIENT_FFS. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds