From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HXKx7-0008JM-6t for qemu-devel@nongnu.org; Fri, 30 Mar 2007 13:31:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HXKx5-0008JA-LO for qemu-devel@nongnu.org; Fri, 30 Mar 2007 13:31:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HXKx5-0008J7-I2 for qemu-devel@nongnu.org; Fri, 30 Mar 2007 12:31:51 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HXKuM-0000sV-Fm for qemu-devel@nongnu.org; Fri, 30 Mar 2007 13:29:02 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] add a simple 24mhz clock for the versatile Date: Fri, 30 Mar 2007 18:28:55 +0100 References: <460D3F4D.10400@windriver.com> In-Reply-To: <460D3F4D.10400@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200703301828.56471.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > + =A0 =A0 =A0 =A0uint64_t now =3D qemu_get_clock(vm_clock); > + =A0 =A0 =A0 =A0return (uint32_t)(now*.024); We should be able to do this without resorting to floating point arithmetic. Paul