I'd like to ask some tips and guidance on how to convert this type math in float world into fixed point.
Let's say we have the floating point expression:
float a = 1.0f/(1.0f+alpha)
The final result is obviously bound to be <1 if alpha >=0 but the required intermediate calculation for the denominator would be higher than 1 and potential bigger than the highest value in q5.27 for example.
I thought about dividing by 8, doing the math and the rescaling back. Is this an ideal approach? I'd like to know of best practices or most common approaches typically used in DSP programming. If you could provide code that would be great.
Building a small repertoire of examples such as this could lower the barrier for new axoloti users interested in object coding.