| To: | Alan Cox <alan@lxorguk.ukuu.org.uk> |
|---|---|
| Subject: | Re: [PATCH 1/8] add lib/gcd.c |
| From: | James Cloos <cloos@jhcloos.com> |
| Date: | Sat, 13 Jun 2009 11:50:15 -0400 |
| Cc: | linux-kernel@vger.kernel.org, "Linux-MIPS" <linux-mips@linux-mips.org>, Florian Fainelli <florian@openwrt.org>, Andrew Morton <akpm@linux-foundation.org>, Takashi Iwai <tiwai@suse.de>, Ralf Baechle <ralf@linux-mips.org> |
| Copyright: | Copyright 2009 James Cloos |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1244908251; bh=SAYlnAqUZVE1ixT0RiZ9eWYNhEDGrKhlSzqxA3mPBhA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=bnHCEuLxWOAh601C57WkuzAky5hoFxpDwGd3ipJHRt7M50J+QkGKKfhpD++8PuS3P co1pvWgGrLD4DDdeWWJnLMYzhUqsSgSYprsRXy00gV9zzLe72U0rDQoWNaEhuJjJp6 8EGiZX78Vf1rn/kaiOrL6Ik6vRCaMxDwSPdk6KbY= |
| Face: | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== |
| In-reply-to: | <20090613162802.6c212505@lxorguk.ukuu.org.uk> (Alan Cox's message of "Sat, 13 Jun 2009 16:28:02 +0100") |
| Openpgp: | ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc |
| Openpgp-fingerprint: | E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <200906041615.10467.florian@openwrt.org> <m38wjwz5ur.fsf@lugabout.jhcloos.org> <20090613162802.6c212505@lxorguk.ukuu.org.uk> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.92 (gnu/linux) |
>>>>> "Alan" == Alan Cox <alan@lxorguk.ukuu.org.uk> writes: >> Would the binary gcd algorithm not be a better fit for the kernel? Alan> Could well be the shift based one is better for some processors only. Very likely, I suspect. And the version of the euclid algo in that patch is better than most references that I've seen. (q=a/b;r=a%b; is common, probably because the texts use the same algo for computing the continued fraction.) In any case, I do not have the hardware to do any statistically significant testing; the closest I could do would be a speed test on hera, which I expect would be discouraged. -JimC -- James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/8] add lib/gcd.c, Alan Cox |
|---|---|
| Next by Date: | Re: Error: symbol `__pastwait' is already defined, Kevin D. Kissell |
| Previous by Thread: | Re: [PATCH 1/8] add lib/gcd.c, Alan Cox |
| Next by Thread: | Re: [PATCH 1/8] add lib/gcd.c, James Cloos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |