lkml.org 
[lkml]   [2006]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [-mm patch] add timespec_to_us() and use it in kernel/tsacct.c
Andrew Morton writes:
> On Mon, 7 Aug 2006 15:32:41 +0200
> Adrian Bunk <bunk@stusta.de> wrote:
> > This doesn't look correct since do_div() does not guarantee to return
> > more than 32bit.
>
> eh? We use do_div() to do 64bit/something all the time??

Indeed. If do_div didn't return a 64-bit quotient then
printk("%lld", ...) wouldn't work. (The remainder is 32-bit of course,
because the divisor is 32-bit.)

Paul.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-08 02:05    [W:0.054 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site