> Have a look at the file arch/x86/include/asm/div64.h. That might help
>

Thanks Manish.

I was trying to use the macro do_div defined in that file. But when I
am trying to divide two u64 values using that, I am not getting the
correct quotient.

I am using it like this:

u64, a,b,c;

/* for c = a/b */
c = a;
do_div(c,b);



-- 
Regards,
Sukanto Ghosh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to