From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWpVc-000549-QC for qemu-devel@nongnu.org; Wed, 24 Sep 2014 12:33:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWpVY-0008No-AF for qemu-devel@nongnu.org; Wed, 24 Sep 2014 12:33:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWpVY-0008MB-3m for qemu-devel@nongnu.org; Wed, 24 Sep 2014 12:33:36 -0400 Message-ID: <5422F253.7090403@redhat.com> Date: Wed, 24 Sep 2014 10:33:23 -0600 From: Eric Blake MIME-Version: 1.0 References: <1411572065-18072-1-git-send-email-benoit.canet@nodalink.com> <1411572065-18072-2-git-send-email-benoit.canet@nodalink.com> In-Reply-To: <1411572065-18072-2-git-send-email-benoit.canet@nodalink.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="trnVg82o5TAHoEpoQ6MKVPesg3iLHTBSd" Subject: Re: [Qemu-devel] [PATCH v3 1/3] throttle: Make NANOSECONDS_PER_SECOND an integer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QmVub8OudCBDYW5ldA==?= , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, armbru@redhat.com, peter.maydell@linaro.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --trnVg82o5TAHoEpoQ6MKVPesg3iLHTBSd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/24/2014 09:21 AM, Beno=C3=AEt Canet wrote: > We will want to reuse this define in the future by making it common to = multiple > QEMU modules. > It would be safer that this define be an integer so we avoid strange fl= oat > rounding errors. > Do this conversion. >=20 > Signed-off-by: Beno=C3=AEt Canet > --- > include/qemu/throttle.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake >=20 > diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h > index b890613..8f9e611 100644 > --- a/include/qemu/throttle.h > +++ b/include/qemu/throttle.h > @@ -27,7 +27,7 @@ > #include "qemu-common.h" > #include "qemu/timer.h" > =20 > -#define NANOSECONDS_PER_SECOND 1000000000.0 > +#define NANOSECONDS_PER_SECOND 1000000000 > =20 > typedef enum { > THROTTLE_BPS_TOTAL, >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --trnVg82o5TAHoEpoQ6MKVPesg3iLHTBSd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUIvJTAAoJEKeha0olJ0Nqw5EH/R9AMKK9KuDZdQ79HrLHlRf9 6ONFZBu4muJ0/g/pjH5e8uD1bSqM8kOISMDzuRZUcdrrQA6qR+3oFTgKzJca5CKH eNUf8hgEpGFzF8bsWOaztXkMc2QJa0tt1o34TRR5yV37HJ7QfQs9RmogWZVjy9FM YDXmA8yKv/ZAhis9hYciABd0tcyOpZzK6zcrZs9B/NWAVZczQ8TwzoJsHVMoZ3Gf xgNpgNBxUCHpRplSClXpEb94wac6mQiE5hdkIvsv2RcOpB8feQs6Hr6R4Fr+W0fs l6WvUo3MaK5e7p1QjiDRqiq0SgWHc0C6zpUkgwpIJplcW4Sjpc/xjJ63HApqKTU= =tjI+ -----END PGP SIGNATURE----- --trnVg82o5TAHoEpoQ6MKVPesg3iLHTBSd--