I am a fresher and hop to get your comments.
1. array1 x[i]/ ①value range:[0~1)/ ②32bit Q31 int
2. array1 y[i]/ ①value range:[0~1)/ ②16bit Q15 short int
3. array3 z[i]/ ①z[i]=x[i]*y[i] /②z[i],32bit Q31 int
I rewrite the z[i]=x[i]*y[i] in C language:
z[i]=x[i]*y[i]>>15;
the overflow happened at times in the elements of the array z. Could you share some comments to fix the issue.
P.S. TMS320C6416T,CCS3.3v
Thanks and Best Regards