|
IQmath Library for 32 bit Microcontrollers
The Texas Instruments IQmath Library is a collection of highly optimized and high-precision mathematical functions for C/C++ programmers to seamlessly port floating-point algorithms into fixed-point code. These routines are typically used in computationally intensive real-time applications where optimal execution speed and high accuracy are critical. By using these routines, you can achieve execution speeds considerably faster than equivalent code written in standard ANSI C language. The IQmath Library also addresses the limitations of fixed-point math by defining a programmable dynamic range and resolution.
IQmath is now available in the full release of Stellaris® ARM® Cortex™-M3 StellarisWare® and controlSUITE™ software for C2000™ microcontrollers.
IQmath benefits
- Math library for fixed-point processors speeds computation of floating-point values
- Sin, cos, tan, arcsin, arccos, sqrt, fractional mpy, dv, etc...
- Speed up processing for:
- motor control
- servo control
- audio/image encoding and decoding
- fixed-point Q math
- graphical rotation
- Resolution adjustable based on application requirements
- Achieve seamless code portability between fixed- and floating-point devices
|
|
IQmath functions
- Format conversion utilities:
- atoIQN, IQN, IQNfrac, IQNint, IQNtoa, IQNtoD, IQNtoF, IQNtoIQ, IQtoIQN, IQtoQN, QNtoIQ
- Arithmetic functions:
- IQdiv, IQmpy, IQNdiv, IQNmpy, IQNmpy, IQNmpyI32, IQNmpyI32frac, IQNmpyI32int, IQNmpyIQX, IQNrmpy, IQNrsmpy
- Trigonometric functions:
- IQNacos, IQNasin, IQNatan, IQNatan2, IQNatan2PU, IQNcos, IQNcosPU, IQNsin, IQNsinPU
- Mathematical functions:
- IQNexp2, IQNisqrt, IQNmag, IQNsqrtMiscellaneous: IQNabs, IQNsat
|
|