This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Help: the overflow issue about fixed point data computing

Other Parts Discussed in Thread: TMS320C6416T

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