 |
F29H85x-SDK
1.02.01.00
|
|
Introduction
expf() example
Watch Variables
External Connections
Steps to Run the Example
- When using CCS projects to build, import the CCS project and build it using the CCS project menu (see CCS Build Project).
- When using makefiles to build, note the required combination and build using make command (see Makefile based Build)
- Launch a CCS debug session and run the executable, see Build, Load and Run
- Pick the project build configuration (RAM_FASTMATH uses the optimized implementation), build and run the example
- It will print statements as it executes the example, along with Pass/Fail information and number of cycles
- Additionally, the error between the RTS library output and the TMU output is also printed for all the inputs
- Note that the compiler will not substitute the TMU instruction for expf (or powf) computation even with -ffast-math
- This is because the TMU output is not accurate for larger positive inputs