Hi!
I was not able to make GCC compile correct assembly code for 32x32=64bit multiplication using the MPY32 module.
uint64_t res;
uint32_t a, b;
res=a*b; //returns only the lower 32 result bits ( __mulsi2_f5())
res=(uint64_t) (a * b); //same
res=((uint64_t)a) * ((uint64_t)b); //does not even use the MPY32
Is there any way to do this correctly with the * operator or should I write my own code?
Thanks!