Re: 64 bit assignment trouble on a 32 bit platform

2007-10-29 Thread Rask Ingemann Lambertsen
On Mon, Oct 29, 2007 at 03:05:32PM +0530, kum wrote: > > Is it necessary to type-cast both a32 and b32 to make above statements > to work as expected? Without casting, I find that addition works while > the multiplication does not. Is there a compiler option to make this > work without casting? I

Re: 64 bit assignment trouble on a 32 bit platform

2007-10-29 Thread Samuel Tardieu
[this is not a question for the GCC developers list] Kumaresh> Is it necessary to type-cast both a32 and b32 to make above Kumaresh> statements to work as expected? Yes. Kumaresh> Without casting, I find that addition works while the Kumaresh> multiplication does not. Addition is not supposed t

64 bit assignment trouble on a 32 bit platform

2007-10-29 Thread kum
hi, UINT64 a64; // UINT64 has been typedefed as long long unsigned int UINT32 a32, b32; a32 = x; // some value b32 = y; // some value a64 = a32 * b32; a64 += a32 + b32; Is it necessary to type-cast both a32 and b32 to make above statements to work as expected? Without casting, I find that additi