From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: add 64-64 bit divider
Date: Wed, 31 Aug 2011 13:56:23 +0200 [thread overview]
Message-ID: <201108311356.23919.marek.vasut@gmail.com> (raw)
In-Reply-To: <1314787130-1043-1-git-send-email-clchiou@chromium.org>
On Wednesday, August 31, 2011 12:38:50 PM Che-Liang Chiou wrote:
> This patch adds a 64-64 bit divider that supports ARMv4 and above.
>
> Because clz (count leading zero) instruction is added until ARMv5, the
> divider implements a clz function for ARMv4 targets.
>
> The divider was tested with the following test driver code ran by
> qemu-arm:
>
> int main(void)
> {
> uint64_t a, b, q, r;
> while (scanf("%llx %llx %llx %llx", &a, &b, &q, &r) > 0)
> printf("%016llx %016llx %016llx %016llx\n", a, b, a / b, a % b);
> return 0;
> }
>
> Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
> ---
Hi,
do you see any kind of a performance hit so you can't use the default "C"
version?
Cheers
next prev parent reply other threads:[~2011-08-31 11:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-31 10:38 [U-Boot] [PATCH] arm: add 64-64 bit divider Che-Liang Chiou
2011-08-31 11:56 ` Marek Vasut [this message]
2011-08-31 14:32 ` Mike Frysinger
2011-08-31 15:11 ` Marek Vasut
2011-08-31 15:27 ` Mike Frysinger
2011-08-31 15:33 ` Marek Vasut
2011-08-31 16:05 ` Mike Frysinger
2011-08-31 16:30 ` Marek Vasut
2011-08-31 17:13 ` Mike Frysinger
2011-08-31 20:03 ` Wolfgang Denk
2011-09-01 10:09 ` Che-liang Chiou
2011-09-01 10:16 ` Marek Vasut
2011-09-01 10:30 ` Che-liang Chiou
2011-09-01 10:42 ` Marek Vasut
2011-09-01 12:06 ` Che-liang Chiou
2011-09-01 13:07 ` Wolfgang Denk
2011-09-02 3:12 ` Che-liang Chiou
2011-09-07 21:14 ` Wolfgang Denk
2011-09-20 10:45 ` Graeme Russ
2011-09-20 11:28 ` Wolfgang Denk
2011-09-20 11:40 ` Graeme Russ
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=201108311356.23919.marek.vasut@gmail.com \
--to=marek.vasut@gmail.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.