From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zan Lynx Subject: Re: MSEC_TO_JIFFIES is messed up... Date: Wed, 12 May 2004 15:56:57 -0600 Sender: netdev-bounce@oss.sgi.com Message-ID: <1084399017.27252.46.camel@localhost.localdomain> References: <20040512020700.6f6aa61f.akpm@osdl.org> <20040512181903.GG13421@kroah.com> <40A26FFA.4030701@pobox.com> <20040512193349.GA14936@elte.hu> <20040512200305.GA16078@elte.hu> <20040512211255.GA20800@elte.hu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-tyT1IZs0Aqen8m1DlB8J" Cc: Davide Libenzi , Jeff Garzik , Greg KH , Andrew Morton , Linux Kernel Mailing List , Netdev Return-path: To: Ingo Molnar In-Reply-To: <20040512211255.GA20800@elte.hu> Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org --=-tyT1IZs0Aqen8m1DlB8J Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-05-12 at 15:12, Ingo Molnar wrote: > * Davide Libenzi wrote: >=20 > > int foo(int i) { > >=20 > >=20 > > return i * 1000 / 1000; > > } >=20 > try unsigned and you'll see: [snip] I forgot to add that yes I know i * (x / 1000) is different than i * x / 1000 in integer math. Please don't hit me. --=20 Zan Lynx --=-tyT1IZs0Aqen8m1DlB8J Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQBAop2pG8fHaOLTWwgRAu34AJwMXBXS5I9WzBcNDlXuNwy+iRf+rACcCOrj J66yZh73io1vDNmaB6Rau0A= =pyaH -----END PGP SIGNATURE----- --=-tyT1IZs0Aqen8m1DlB8J--