2011-07-29 05:39 PM
Never used the Cosmic complier before do I require any header like math.h to do a u16*u16 into u32 doesn't seem to do anything.
2011-07-29 11:05 PM
Hi,
I'm not sure what you mean by ''doesn't seem to do anything'', but, if you want to calculate u32 =u16*u16 in optimized form, you must write something like volatile unsigned short us1, us2, us3; volatile unsigned long ul; ul = (long) us1 * us2; Regards, Luca (Cosmic)2011-08-02 10:17 AM