Jason R Sachs said:By the way, is there any chance a 16-bit IQ math library could be added? We almost never need 32-bit precision and 32x32 multiplies. In my project we're working on motor control algorithms, and I use 16 bit numbers almost exclusively, with the exception of integrator/filter state where 32 bits are required (and the least significant bits are only there for filter/integration state; the most significant bits are the filter/integrator output) -- I have one 32x32 multiply that I am considering adding only because the dynamic range of this particular operation is hard to encapsulate in a 16x16 multiply under all circumstances.
Jason,
There is a small library with Q1.15 functions. It has not been updated in a very long time and I don't know if many people use it. It is also not full-featured as IQmath. Having said all of that, you may still find something useful there.
http://focus.ti.com/docs/toolsw/folders/print/sprc085.html
Let me know your thoughts.
-Lori