Re: lgs8gxx: 64bit division

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 5, 2009 at 10:14 AM, David Wong<davidtlwong@xxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux