← Back to context

Comment by djmips

4 years ago

Some DSP chips had hardware for fixed point. I think it's a shame that C never added support for fixed point.

There was a draft and GCC supports it in stdfix.h. The downside is that the types have limited integer range since they're tailored for DSP applications where values are kept scaled between +/-1.0.