On Wed, Aug 5, 2009 at 10:14 AM, David Wong<[email protected]> wrote:
> Dear all,
>
>  Someone complains that he cannot compile my lgs8gxx.c on gcc3,
> unknown kernel version.  Compilation
> error at line 249 about the 64-bit division. I have no compilation
> error on my x86_64 system, gcc4,
> linux-2.6.28 kernel. Should the 64-bit division code be changed?
>
>  There is also it 64bit / 32bit division via do_div(), is it correct?

David,

The following changeset illustrates how to use do_div to handle 64bit
division regardless of 32 / 64 bit architecture.

http://linuxtv.org/hg/v4l-dvb/rev/530c2f70dc25

I hope this helps.

Regards,

Mike
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to