This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F29H859TU-Q1: How to use the asinf() function

Part Number: F29H859TU-Q1

Hi team,

I ask this for my customer.

We use the demo in f29h85x-sdk_1_02_00_00\examples\rtlibs\fastmath\asinf_example, use the launchpad

1.we use the flash build configuration, either we define FASTMATH or not define FASTMATH, the test_ouput is 0 showed in CIO

image.png

then we modifty the input variable, then we can get the correct asinf result

image.png

image.png

Could you help to find the reason of this problem?

2. If i delete FASTMATH pre-define symbols and enable the -ffast -math, the result would incorrect, why this is happen?

image.png

image.png

3. If I use the FASTMATH pre-define symbols and enable the -ffast -math, the result is correct, if customer want to use the ffmath lib, what they should do in their project?

For example, they needs to add the FASTMATH pre-define symbols, enable the  -ffast -math, any others they need to do?

image.png

4. Add more questions from customer, if they don't enable the -ffast -math, it will generate the error that shows floating calculation is over flow, what's float math calculation is related to this?

BRs

Shuqing