Re: MSEC_TO_JIFFIES is messed up...

From: Zan Lynx
Date: Wed May 12 2004 - 16:59:35 EST


On Wed, 2004-05-12 at 15:12, Ingo Molnar wrote:
> * Davide Libenzi <davidel@xxxxxxxxxxxxxxx> wrote:
>
> > int foo(int i) {
> >
> >
> > return i * 1000 / 1000;
> > }
>
> 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.
--
Zan Lynx <zlynx@xxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part