SPRUJG0B December 2024 – November 2025 F29H850TU , F29H859TU-Q1
Use optimized libraries and source provided in F29x SDKs. These contain optimal implementations of many standard control, DSP, and math operations. Some of these (FFT, FIR) are written in assembly.
Many RTS library functions are cycle intensive because they cover all corner-case scenarios. When certain assumptions are made (for example, no NaN or infinite values are operands or results of floating-point operations), these functions can be replaced with simpler and more optimized functions that leverage specific C29 instructions. For example- asinf(), acosf(), atan2f(), ceilf(), cosf(), divf(), expf(), floorf(), fmodf(), roundf(), sinf(), truncf(). Examples of these implementations are provided in the F29x-SDK, and are enabled with the -ffast-math compiler option.
Automotive applications using AUTOSAR leverage math libraries generated by code generation tools, containing floating-point and fixed-point libraries, with functions for fixed-point to floating-point conversion and vice versa. C29 instructions can be leveraged to perform these in an efficient manner.