From: "Jonathan Kalbfeld" <jonathan.kalbfeld@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] add a simple 24mhz clock for the versatile
Date: Fri, 30 Mar 2007 10:49:34 -0700 [thread overview]
Message-ID: <db7b3ca90703301049m26787017pe589e2f53aa3bff4@mail.gmail.com> (raw)
In-Reply-To: <200703301828.56471.paul@codesourcery.com>
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
If you're ok you can shift it left 4 bits, then add half that result then
shift right 10 bits.
Of course, you'll only get 23.4Mhz that way :-)
jonathan
On 3/30/07, Paul Brook <paul@codesourcery.com> wrote:
>
> > + uint64_t now = qemu_get_clock(vm_clock);
> > + return (uint32_t)(now*.024);
>
> We should be able to do this without resorting to floating point
> arithmetic.
>
> Paul
>
>
>
--
--
Jonathan Kalbfeld
+1 323 620 6682
[-- Attachment #2: Type: text/html, Size: 772 bytes --]
next prev parent reply other threads:[~2007-03-30 17:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 16:48 [Qemu-devel] [PATCH] add a simple 24mhz clock for the versatile Jason Wessel
2007-03-30 17:28 ` Paul Brook
2007-03-30 17:49 ` Jonathan Kalbfeld [this message]
2007-03-30 23:30 ` Wessel, Jason
2007-03-30 23:39 ` andrzej zaborowski
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=db7b3ca90703301049m26787017pe589e2f53aa3bff4@mail.gmail.com \
--to=jonathan.kalbfeld@gmail.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).