2007-06-06 08:08 PM
2007-06-06 05:41 AM
Hello,
My question is simple. Does the STR750 support this : typedef long long u64 ? I'm trying to do this : u32 a; u32 b; long long c ; c = (u32)a * (u32)b; but it dosen't work... Thank you for your help. -Xavier I'm trying to [ This message was edited by: Xavio on 07-06-2007 08:32 ]2007-06-06 07:47 AM
This is down to to compiler not the device, works fine on all the tools i have tried.
What tools are you using ? It would not help that you are casting your result to 32bits. Regards sjo2007-06-06 06:39 PM
I think what you are trying to do is this:
u32 a, b; u64 c; c = (u64)a * (u64)b; In C, it is assumed that the result of u32*u32 is u32, unless you tell the compiler otherwise. - mike2007-06-06 08:08 PM
Thank you so much for your answers, it works.