[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 64 bit division ..
On 12/13/05, ppunnam@xxxxxxxxxxx <ppunnam@xxxxxxxxxxx> wrote:
>
>
> Hi,
> can any one tell me how can we caluculate the 64 bit division in
> user space. I got two __u64 variables, something similar to the
> do_div (asm/div64.h) in kernel.
>
Just do a normal division. If you are using a 64bit architecture with
a 64bit userspace / compiler / toolchain and doing divisions on 64bit
long types, then your compiler should take care of generating the
proper 64bit div's all on its own.
--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/