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.

IQmath operation

Hi,

I am trying to make my code more efficient.

A _IQ16 variable is to be divided by another variable whose type is unsigned int with the value 4. Is it able to do it with shift operation or is there any other efficient way?

If there is, how can I accomplish that?

Fan