public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: George Spelvin <linux@horizon.com>
Cc: zhaoxiu.zeng@gmail.com, akpm@linux-foundation.org,
	dhowells@redhat.com, jwboyer@redhat.com,
	linux-kernel@vger.kernel.org, mingo@kernel.org,
	takahiro.akashi@linaro.org
Subject: Re: [PATCH 1/1] GCD: add binary GCD algorithm
Date: Fri, 15 Aug 2014 23:32:09 +0200	[thread overview]
Message-ID: <20140815213209.GM19379@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <20140815201601.2497.qmail@ns.horizon.com>

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

On Fri, Aug 15, 2014 at 04:16:01PM -0400, George Spelvin wrote:
> What I'd like is a better way to automatically configure "divide is
> slow" from an architecture.

So the usual thing and have arch/*/Kconfig select the fancy one if it
doesn't have a hardware divide instruction.

For instance:

arch/arm/Kconfig:

config ARM
	...
	select GCD_FANCY_ALGO if CPU_v6

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2014-08-15 21:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-15 12:49 [PATCH 1/1] GCD: add binary GCD algorithm Zhaoxiu Zeng
2014-08-15 13:58 ` Peter Zijlstra
2014-08-15 16:41   ` zhaoxiu.zeng
2014-08-15 21:53     ` George Spelvin
2014-08-15 20:16   ` George Spelvin
2014-08-15 21:32     ` Peter Zijlstra [this message]
2014-08-22 21:31 ` Andrew Morton
2014-08-22 22:36   ` George Spelvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140815213209.GM19379@twins.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=dhowells@redhat.com \
    --cc=jwboyer@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@horizon.com \
    --cc=mingo@kernel.org \
    --cc=takahiro.akashi@linaro.org \
    --cc=zhaoxiu.zeng@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox